[
  {
    "Id": "563833",
    "ThreadId": "245417",
    "Html": "\r\n<p>hello,</p>\r\n<p>i use&nbsp;<strong>HTTPRangeStream</strong> and ZipFile to <strong>decompress</strong> an\r\n<strong>encrypted</strong> comes from server over http</p>\r\n<p>some files are decompressed properly but on some files it throw the following exception:</p>\r\n<p>&quot;Bad state (invalid block type)&quot; and sometime it through &quot;Bad state (oversubscribed dynamic bit lengths tree)&quot;</p>\r\n<p>when i decompress the file direct from local machine &quot;not over http&quot; its decompress properly.</p>\r\n<p>so the problem just when i use the <strong>HTTPRangeStream.</strong></p>\r\n<p>&nbsp;</p>\r\n<p><strong>please any help</strong></p>\r\n",
    "PostedDate": "2011-02-10T02:31:18.977-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "566025",
    "ThreadId": "245417",
    "Html": "<p>Well, let's see, that HttpRangeStream thing - I think that might be some sample code that I published a while ago, is that right?&nbsp; I'm pretty sure it's not part of DotNetZip, and it's not something I can support.&nbsp;</p>\r\n<p>But I can offer some ideas.&nbsp; First, I have no idea what the problem might be.&nbsp; The errors that you see suggest that there is corrupted data in your encrypted stream.&nbsp; This may happen if HttpRangeStream is reading the wrong data, or is reading data out of order, and so on.&nbsp;</p>\r\n<p>I have two suggestions for what I would do to diagnose and solve this problem.&nbsp; #1, wrap the HttpRangeStream in a BufferedStream so that it buffers as it reads; this may solve the problem immediately, with no diagnostic effort.&nbsp;&nbsp; If that doesn't work, then #2, I would introduce some tracing or diagnostics directly into HttpRangeStream to see what reads are occurring, and what it is returning.&nbsp; Then compare that to a stream read from a regular filesystem file. (You may find it helpful to create a new stream type, like TracedStream, to wrap around the HttpRangeStream or FileStream.&nbsp; The TracedStream would collect diagnostics on each Read() call, and then pass through the read to the wrapped stream.)</p>\r\n<p>Good luck.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-02-14T11:24:48.7-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "1244807",
    "ThreadId": "245417",
    "Html": "FYI:<br />\n<br />\nI get this error when trying to open an AES encypted ZIP file produced by PdfTron's PDFNet library.<br />\nWhen opening the ZIP with Winrar, the files are empty and it doesn't ask for any password.<br />\n<br />\nHere is the call stack:<br />\n<pre><code>[ZlibException: Bad state (oversubscribed dynamic bit lengths tree)]\n   Ionic.Zlib.InflateManager.Inflate(FlushType flush) +1576\n   Ionic.Zlib.ZlibCodec.Inflate(FlushType flush) +18\n   Ionic.Zlib.ZlibBaseStream.Read(Byte[] buffer, Int32 offset, Int32 count) +341\n   Ionic.Zlib.DeflateStream.Read(Byte[] buffer, Int32 offset, Int32 count) +26\n   Ionic.Crc.CrcCalculatorStream.Read(Byte[] buffer, Int32 offset, Int32 count) +109\n   Ionic.Zip.ZipEntry.ExtractOne(Stream output) +294\n   Ionic.Zip.ZipEntry.InternalExtract(String baseDir, Stream outstream, String password) +1012\n   Ionic.Zip.ZipEntry.Extract(Stream stream) +10</code></pre>\n\nGreat work with this library by the way! :)<br />\nI love it! :)<br />\n",
    "PostedDate": "2014-05-13T06:12:36.03-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]