In an iPhone app I currently have code for downloading a file from the Web to the iPhone and saving it to disk.
The problem is that if the file is large the
You can use NSURLConnection which runs asynchronously and delivers data in manageable chunks.
As NSURLDownload
is not available on the iPhone, you might want to use NSURLConnection
and buffer some data in a NSMutableData
using connection:didReceiveData:
delegate method. This article describes some of this: http://dannyg.com/iapps/Blog/Entries/2009/2/16_The_Joy_in_Discovering_You_Are_an_Idiot.html