{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in changeset 43631.  First binary  1.9.0.8",
    "ClosedDate": "2009-09-18T18:01:50.33-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hello.\n \nThere is a python script which allows extract information from some particular game files. Those files have blocks of data encoded with some algorithm and then compressed with zip.\n \nNow I'm trying to translate that script into C# and I have problem with zlib decompression part. If you see the script on line 237 you'll see that the block size for extraction is negative. According to Python documentation it's undocumented mode that force the zlib decompressor to skip standard gzip header verification on read.\n \nhttp://docs.python.org/library/zlib.html#zlib.decompress\n \nSo my question is - how can I do the same with DotNetZip library? Cause when I try to decompress exactly the same data I got \"Bad state (unknown compression method (0xDE))\" exception (and I verified that I got identical data right before decompression step in both my version and python script version).",
    "LastUpdatedDate": "2013-05-16T05:32:08.15-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2009-09-16T08:29:48.04-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Skip gzip standard header on decompression when wbits is negative",
    "Type": {
      "Name": "Feature",
      "Id": 1
    },
    "VoteCount": 1,
    "Id": 8796
  },
  "FileAttachments": [
    {
      "FileId": 2313,
      "FileName": "test.zip",
      "DownloadUrl": ".\\2313"
    }
  ],
  "Comments": [
    {
      "Message": "This is the test file. \r\n\r\nIt contains \r\n\r\ntest.bin - source binary block of data \r\ntest.py - Python script that can unpack test.bin into python_test.dat file (to run it simply install Python 2.6 and run test.py from command line) \r\npython_test.dat - unpacked (by Python zlib) test.bin, you can see it contains a collection of structures with utf32 text data in them \r\nWhat I'm trying to achieve is that this C# code:\r\n\r\n \r\n\r\nFile.WriteAllBytes (@\"c#_test.dat\", ZlibStream.UncompressBuffer (File.ReadAllBytes (@\"test.bin\")));\r\n \r\n\r\n...could get me the same data as Python version. Now it's only gives me \"Ionic.Zlib.ZlibException: Bad state (unknown compression method (0xA4))\"\r\n",
      "PostedDate": "2009-09-18T13:06:09.627-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-09-18T13:06:12.14-07:00",
      "Id": -2147483648
    },
    {
      "Message": "test.bin is a bare DEFLATE stream.  You can uncompress it using the DeflateStream class.  Unfortunately, in the v1.9.0.7 DotNetZip library, there is no DeflateStream.UncompressBuffer() method.  I'll implement one.  \r\n\r\nThe code will be:  \r\n                File.WriteAllBytes (@\"c#_test.dat\", DeflateStream.UncompressBuffer (File.ReadAllBytes (@\"test.bin\")));\r\n",
      "PostedDate": "2009-09-18T17:58:16.117-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-09-18T18:01:50.33-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:00.75-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:08.15-07:00",
      "Id": -2147483648
    }
  ]
}