0

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

TonyNeallon
  • 6,607
  • 12
  • 42
  • 49

1 Answers1

0

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.

Community
  • 1
  • 1
Vladimir
  • 170,431
  • 36
  • 387
  • 313