How to download files directly to disk on the iPhone os?
- by favo
Hi,
I would like to download files directly from an URL to the disk using objective-c on the iPhone os.
Currently I am using NSURLConnection to send a synchronousRequest, writing the returned NSData into a file.
How can I change the download handling (still having the request beeing synchronous, it is already in a background thread) to write the data directly to disk, not using memory variables to store the complete content (only small parts)?
A sample code would be appreciated.
Thank you all in advance for your responses!