[
  {
    "Id": "235131",
    "ThreadId": "69107",
    "Html": "<p>Hello.</p>\r\n<p>There is a <a href=\"http://code.google.com/p/aion-jp/source/browse/trunk/tools/client_parsers/Format+pak/pak2zip.py?spec=svn4&r=4\">python script</a> which allows extract information from some particular game files. Those files have blocks of data encoded with some algorithm and then compressed with zip.</p>\r\n<p>Now I'm trying to translate that script into C# and I have problem with zlib decompression part. If you see the script on <a href=\"http://code.google.com/p/aion-jp/source/browse/trunk/tools/client_parsers/Format+pak/pak2zip.py?spec=svn4&r=4#237\">line 237</a> you'll see that the block size for extraction is negative. <a href=\"http://docs.python.org/library/zlib.html#zlib.decompress\">According to Python documentation</a> it's undocumented mode that force the zlib decompressor to skip standard gzip header verification on read.</p>\r\n<p>So my question is - how can I do the same with DotNetZip library? Cause when I try to decompress exactly the same data I got &quot;Bad state (unknown compression method (0xDE))&quot; exception (and I verified that I got identical data right before decompression step in both my version and python script version).</p>",
    "PostedDate": "2009-09-16T06:17:07.29-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "235187",
    "ThreadId": "69107",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/WorkItem/View.aspx?WorkItemId=8796\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2009-09-16T08:29:48.83-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "235188",
    "ThreadId": "69107",
    "Html": "<p>Can you give me a .gz file that requires this?&nbsp; (Upload it to the workitem)</p>",
    "PostedDate": "2009-09-16T08:30:43.817-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "235240",
    "ThreadId": "69107",
    "Html": "<p>M... I can either give you full code (it's very short cause it's my test project) and source file. Or I can give you the encrypted block only. What would be more convient for you?</p>\r\n<p>PS: I can upload the file only tomorrow when I'll be on work.</p>",
    "PostedDate": "2009-09-16T10:31:03.15-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "235352",
    "ThreadId": "69107",
    "Html": "<p>full code?&nbsp;&nbsp; not sure what that code would do.</p>\r\n<p>What I would like is the .gz file that omits the GZIP header.&nbsp; I want to be able to verify that the Ionic.Zlib.GZipStream can read the file.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-09-16T15:26:45.697-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "235471",
    "ThreadId": "69107",
    "Html": "<p>Ok, it's here: <a href=\"http://utils.lmstudio.ru/files/dotnetzip/test.zip\">test.zip</a></p>\r\n<p>The content of that archive:</p>\r\n<ul>\r\n<li>test.bin - source binary block of data</li>\r\n<li>test.py - Python script that can unpack test.bin into python_test.dat file (to run it simply install <a href=\"http://www.python.org/ftp/python/2.6/python-2.6.msi\">Python 2.6</a> and run test.py from command line)</li>\r\n<li>python_test.dat - unpacked (by Python zlib) test.bin, you can see it contains a collection of structures with utf32 text data in them</li>\r\n</ul>\r\n<p>What I'm trying to achieve is that this C# code:</p>\r\n<p>&nbsp;</p>\r\n<div style=\"color:Black;background-color:White\">\r\n<pre>File.WriteAllBytes (<span style=\"color:#A31515\">@&quot;c#_test.dat&quot;</span>, ZlibStream.UncompressBuffer (File.ReadAllBytes (<span style=\"color:#A31515\">@&quot;test.bin&quot;</span>)));\r\n</pre>\r\n</div>\r\n<p>&nbsp;</p>\r\n<p>Could get me the same data as Python version. Now it's only gives me &quot;Ionic.Zlib.ZlibException: Bad state (unknown compression method (0xA4))&quot;</p>",
    "PostedDate": "2009-09-17T00:26:25.963-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "236201",
    "ThreadId": "69107",
    "Html": "<p>I'll have a look.</p>",
    "PostedDate": "2009-09-18T13:06:51.417-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "236303",
    "ThreadId": "69107",
    "Html": "<p>That file is a bare DEFLATE stream.&nbsp; What you want is DeflateStream.UncompressBuffer().&nbsp; I just added that method into v1.9.0.8.&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-09-18T18:10:33.563-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "236376",
    "ThreadId": "69107",
    "Html": "<p>Oh! Thank you very much!</p>",
    "PostedDate": "2009-09-19T02:13:49.013-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]