title: iPhone how to compress the files while upload to server?
body: <p>What is the best way to compress and upload file from iPhone? Am using ASIHTTP to upload the file to my server. But am getting network error while upload the large files to server. So how to compress and upload it using ASIHTTP?</p>
  
  <pre><code>Code:
  [serverUploadRequest setPostValue:withEmail_id forKey:@"mail_id"];
      [serverUploadRequest setPostValue:withPassword forKey:@"pwd"];
      [serverUploadRequest setPostValue:withFileName forKey:@"file_name"];
      [serverUploadRequest setPostValue:withFileExtension forKey:@"file_extension"];
  [serverUploadRequest setData:fileData withFileName:withFileName andContentType:@"application/octet-stream" forKey:@"userfile"];
  
  [serverUploadRequest startSynchronous];
  </code></pre>
  
  <p>This is working fine but when i try to upload the large files some times am getting upload failed error. So is possible to compress and upload the file to server. Am using windows 2003 server with PHP</p>
  
  <p>Thanks</p>