FTP and iPhone Programming

2019-06-09 21:57发布

Can someone show me code that takes an image from a server and puts it into an image on the iPhone to display in a program. In particular, let's say my ftp server is at mydomain.com and my username is "name" and password is "password"

What would the code look like to take an image called "hello.png" of size 25x25 sitting on the server and using it in my iPhone app.

Thanks!

标签: iphone ftp
2条回答
甜甜的少女心
2楼-- · 2019-06-09 22:29

here is some code I wrote for a phonegap plugin that will download a file and save it locally

http://blog.clearlyinnovative.com/post/1097750723/phonegap-plugin-for-downloading-url

查看更多
贪生不怕死
3楼-- · 2019-06-09 22:48

Use the NSURLConnection and CFFTPStream APIs.

A good example is here on Apple's site.

查看更多
登录 后发表回答