What is the Maximum Allowed File Size for downloading using NSMutableURLRequest
Part of the functionality Ive written for an app is downloading zip files from a server using NSMutableURLRequest. 开发者_高级运维All works until I try to download a file approx greater than 12MB. The iPhone is on wireless lan. I was wondering if there is a limit or max chunk size to implement when downloading larger files? I fails for these file sizes on both simulator and device. The application just crashes and didFailWithError connection delegate is never hit.
Ive been stumped by this for days now :( Your help is much appreciated.
Tony
You're likely getting low memory warning and that cause application to crash. Check similar question - you can write the data you recieve directly into file, rather then into memory. You can use NSFileHandle class for that.
精彩评论