访问FTP连接以下载文件 [英] Accessing an FTP connection for downloading files

查看:184
本文介绍了访问FTP连接以下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是iphone的新手..我想要通过目标c访问ftp服务器的指南,其中ftp url,用户名,密码应该在程序本身给出,我想从ftp访问大量图像文件并显示它在我的imageview中。



如何将这些图像文件存储在本地,并在需要时进行检索....

在此先感谢..

解决方案

Ftp?真?使用用户名和密码?除非你的服务器配置得很好,否则FTP是一个等待发生的安全漏洞。



但是...好的...回答你的问题题; iOS中没有内置的FTP客户端API。你可能需要推出自己的(很难,但协议是有据可查的)或使用客户端库(也许很容易,也许不)。

我会开始这里(是的,一个谷歌搜索,但不意味着是轻浮),并检查各种库,以查看哪些更适合您的需求。



请注意, Omni的框架显示在该页面上。他们编写的代码很好。






然而,最好的解决方案是使用HTTP在应用程序和服务器之间进行通信。内置HTTP支持,HTTP无处不在,配置Web服务器更加简单。


i am new to iphone.. i want guidelines for accessing ftp server through objective c ,where ftp url, username,password should be given in program itself , i want to access a lot of image files from the ftp and display it in my imageview.

how to store those image files in locally and retrieve whenever needed....

thanks in advance..

解决方案

Ftp? Really? With username and password? Unless your server is really well configured, FTP is a security hole waiting to happen.

But... OK... to answer your question; there is no built in FTP client API in iOS. You'll either need to roll your own (hard, but the protocol is well documented) or use a client library (maybe easy, maybe not).

I'd start here (yes, a google search, but not meant to be flippant) and review the various libraries to see which fits your needs better.

Note that Omni's frameworks show up on that page. They write good code.


However, the best solution would be to use HTTP to communicate between your app and a server. HTTP support is built in, HTTP is ubiquitous, and it is much easier to configure a web server to be secure.

这篇关于访问FTP连接以下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆