We are currently using ASIHTTPRequest in our iPad application, which is a PDF viewer.
Currently the app downloads large PDF’s 50+MB from our web server perfectly fine on the iPad 2 using this code:
However when we profile the application, we can see that during the download the application overall memory keeps on increasing whilst the download occurs to the full size of the PDF, and it looks like the app is writing to memory then out to disk?
Checking the ASI Documentation what we have looks correct, has anyone seen this issue before?
Thanks Aaron
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setDownloadDestinationPath:@"/Users/ben/Desktop/my_file.pdf"];
Use NSFileManager to set destination directory path