views:

67

answers:

1

Hi there, 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

A: 

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.

Vladimir