title: QT uncompress a zip file using qUncompress
body: <p>Im using <code>qUncompress</code> to unzip a file that was originally zipped in Mac OS X (right click -> compress)</p>
  
  <p>My code looks like:</p>
  
  <pre><code>        QString location = "/path/to/file/";
          QFile infile(location + "file.zip");
          QFile outfile(location + "file.app");
          infile.open(QIODevice::ReadOnly);
          outfile.open(QIODevice::WriteOnly);
          QByteArray uncompressedData = infile.readAll();
          QByteArray compressedData = qUncompress(uncompressedData);
          outfile.write(compressedData);
          infile.close();
          outfile.close();
  </code></pre>
  
  <p>However I am getting this error:</p>
  
  <pre><code>qUncompress: Z_DATA_ERROR: Input data is corrupted
  </code></pre>
  
  <p>Any ideas what could be wrong?</p>