Possible Duplicate:
iOS download and save image inside app
I want to download a file. I found this
[NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://lasp.colorado.edu/home/wp-content/uploads/2011/03/suncombo1.jpg"]]
My questions are:
Where does the file saved?
By using threads, is it any possible to build a status bar for downloads?
Are there any way to change the memory(internal/external) to save the file?
Now I am using
NSData *dataImage = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://lasp.colorado.edu/home/wp-content/uploads/2011/03/suncombo1.jpg"]];
downloadStatus.text =@"size: %zd", malloc_size(dataImage);
The result is always 32. Shouldn't that be the size of the actual image?