title: Crypto++ library gzip issue
body: <p>I am having an issue with the GZIP class of the Crypto++ library. I am working on a server client app. The client app is written in C++. I encrypt data using the GZIP class as follows: </p>
  
  <pre><code>#include &lt;gzip.h&gt;
  
  Gzip zipper(1);    // 1 is fast, 9 is slow
  
  zipper.Put(pData,dwLen);
  zipper.Close();
  
  byte* pCompressed = new byte[zipper.MaxRetrieveable()];
  zipper.Get(pCompressed,zipper.MaxRetrieveable());
  </code></pre>
  
  <p>The data is hex encoded and then transferred to the PYTHON utilize which decodes and attempts to decompress these GZIP streams as follows: </p>
  
  <pre><code>import gzip
  import StringIO
  fio = StringIO.StringIO(gzip_data)
  f = gzip.GzipFile(fileobj=fio)
  f.read()
  'test'
  f.close()
  </code></pre>
  
  <p>And I have also tried the following as: </p>
  
  <pre><code>fh = gzip.open('abc.gz', 'rb')
  cdata = fh.read()
  fh.close()
  </code></pre>
  
  <p>This seems simple enough, but it is not working correctly and gives me errors during the decompression process on the PYTHON end. Is there a separate way to decompress streams vs actual files utilizing the PYTHON module class? </p>
  
  <p>If anyone else has had this issue, any assistance would be greatly appreciated.</p>
  
  <p><strong><em>UPDATE</em></strong></p>
  
  <p>Thank you for your reply jww. Just FYI, I got this to work today by decompressing the received stream, from the C++ software utilizing the CryptoPP library, as follows within the PYTHON client: </p>
  
  <pre><code>compressedstream = StringIO.StringIO(data2)
  gzipper = gzip.GzipFile(fileobj=compressedstream)
  f = gzipper.read()
  </code></pre>
  
  <p>I am not sure exactly why this works. It appears as though you must process/decompress gzip streams and gzip files differently. In any case, the stream decompression method using the PYTHON gzip.GzipFile method works very nicely. </p>