title: UIImageJPEGRepresentation received memory warning
body: <p>I receive a memory warning when using UIImageJPEGRepresentation, is there any way to avoid this? It doesn't crash the app but I'd like to avoid it if possible. It does intermittently not run the <code>[[UIApplication sharedApplication] openURL:url];</code> </p>
  
  <pre><code>- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
  {
      UIImage *image = [info valueForKey:UIImagePickerControllerOriginalImage];
      NSData *imageToUpload = UIImageJPEGRepresentation(image, 1.0);
  
      // code that sends the image to a web service (omitted)
      // on success from the service
      // this sometime does not get run, I assume it has to do with the memory warning?
      [[UIApplication sharedApplication] openURL:url];
  }
  </code></pre>