[
  {
    "Id": "1416009",
    "ThreadId": "631798",
    "Html": "Hello.<br />\n<br />\nI'm using the latest version DotNetZip in order to decompress some text that is GZIP compressed. I'm using Ionic.Zlib for that, with the GZipStream class.<br />\n<br />\nThe problem is that the GZIP data contains multiple GZIP files, which have been concatenated. The data is decompressed correctly when using the gzip command-line tool (the GNU version.)<br />\n<br />\nI tried to iterate manually over the data, but it doesn't work, because GZipStream.Read() will advance the position of the input stream to the end; it doesn't just put it where the data of the first GZIP file ends. (And yes, I've specified true for the leaveOpen argument of the GZipStream constructor.)<br />\n<br />\nI assume this is a bug? Can you think of any other way to decompress the data without knowing the offsets of the beginning of each file inside the concatenated data?<br />\n<br />\nConcatenated GZIP data can be produced very easily. On Unix (Linux, Mac, etc):<br />\n<pre><code>cat file1.gz file2.gz &gt; concatenated.gz</code></pre>\n\nOn Windows:<br />\n<pre><code>copy /b file1.gz+file2.gz concatenated.gz\n</code></pre>\n\nIn both cases, the file &quot;concatenated.gz&quot; will contain both gz files, in the order given in the command-line.<br />\n<br />\nEdit: This forum seems bugged. The above Windows CLI command is supposed to have a plus sign between file1.gz and file2.gz. Do a:<br />\n<pre><code>copy /?</code></pre>\n\nFor more details on the syntax.<br />\n",
    "PostedDate": "2015-04-20T10:08:17.58-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]