I’d like to download images from a network path. But since there is a risk of big files,
I thought it would be a good idea to write/append partial NSdata chunks directly to a file in documents directory.
Is this posible?
I have an asynchronous URLConnection set up.
It calls back to a delegate
-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
method.
In this method, I’d like to append the so-far-downloaded “data” to a file directly to the disk.
Can you help a bit?
If this would be posibble without low level C, it would be perfect.
I havent tried this ever, but from this apple docs, I’d suggest
Note: the filePath must be a valid path for an existing file, there are numerous posts dealing with creating a file.