0

In my app i would like to download images and songs from server url how can we achieve this through programmatically. Any one can suggest or help

Kalyan Andra
  • 67
  • 10

1 Answers1

0

Try ASIHTTPRequest

We are using it in our app to download profile images from Facebook and make HTTP/HTTPS json requests to the server. It can cache downloaded files on local cache speeding up retrieving the same files. It also supports gzip when you need to send lots of text to/from the phone.

Click How to use it tab for some examples of how to use it in your own app.

Also, this answer gives a basic POST example.

Another alternative is native iOS class NSURLConnection, but it doesn't have as many features as ASIHTTPRequest so choose depending on what you need.

Community
  • 1
  • 1
Greg
  • 8,230
  • 5
  • 38
  • 53