title: Saving a file to parse from China Swift
body: <p>I am currently developing in China and the problem lies in this following code; namely, with a VPN, the following code runs smoothly but without the VPN, the problem arises:</p>
  
  <pre><code>    let taskInformation = PFObject(className:"TaskInformation")
  
      let defaultPictureData = UIImageJPEGRepresentation(UIImage(named: "defaultPicture")!, 0.5)
      let pictureFile: PFFile = PFFile(data: defaultPictureData!)!
      taskInformation["pictureFile"] = pictureFile
  
      taskInformation.saveInBackgroundWithBlock {
          (success: Bool, error: NSError?) -&gt; Void in
          if (success) {
              print("The object has been saved.")
          } else {
              print("There was a problem, check error.description")
          }
      }
  </code></pre>
  
  <p>Whenever I try to run this code without a VPN, <code>taskInformation["pictureFile"] = pictureFile</code> will leave the app in a state that is not crashing upon nor executing this line. When I comment this line out and run the app without a VPN, the app works smoothly as with a VPN. Is there a different way to save a picture file or is there another solution to this problem?</p>