[
  {
    "Id": "199535",
    "ThreadId": "58929",
    "Html": "<p>Hi everyone,</p>\r\n<p>I'm trying to unzip a zip file which is created by an external application using the xceed zip library. I can succesfully unzip this zip file using winzip, windows own zip or using Delphi VCLZip component library, but I get a &quot;not a valid zip file&quot; when I want to unzip it using the following code :</p>\r\n<p>\r\n<p>using (ZipFile zip = ZipFile.Read(@&quot;c:\\\\lvsM.zip&quot;)){</p>\r\n<p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;foreach (ZipEntry file in zip)</p>\r\n<p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</p>\r\n<p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;file.Extract(@&quot;c:\\\\temp&quot;);</p>\r\n<p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</p>\r\n<p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</p>\r\n</p>\r\n<p>the zip file has a comment in it, I've used version 1.7.2.21. You can download the zip file from :</p>\r\n<p>http://www.snapit.nl/lvsM.zip</p>\r\n<p>thanks,</p>\r\n<p>Rob</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-06-09T07:45:09.253-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "200647",
    "ThreadId": "58929",
    "Html": "<p>Hi Rob,</p>\r\n<p>that's the first time I ever saw a zip file formatted that way. I've updated DotNetZip so that it should be able to read it.&nbsp; Download v1.7.2.23 to see if it works for you.</p>\r\n<p>It's available now.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-06-11T17:55:39.447-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "200706",
    "ThreadId": "58929",
    "Html": "<p>Hi Cheeso,</p>\r\n<p>thanks! It works now for a zip file without a password, but not for one with has a password set, I use the following code :</p>\r\n<p>ZipFile zip = new ZipFile(@&quot;c:\\\\lvs.zip&quot;);</p>\r\n<p>\r\n<p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;zip.Password = &quot;password&quot;;</p>\r\n<p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;foreach (ZipEntry file in zip)</p>\r\n<p><span style=\"white-space:pre\"> </span>{</p>\r\n<p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"white-space:pre\"> </span>file.Extract(@&quot;c:\\\\temp&quot;);</p>\r\n<p><span style=\"white-space:pre\"> </span>}</p>\r\n</p>\r\n<p>You can download the zip file with password from : http://www.snapit.nl/lvsp.zip</p>\r\n<p>thanks,</p>\r\n<p>Rob</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-06-12T00:38:34.65-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "200749",
    "ThreadId": "58929",
    "Html": "<p>Boy, you just keep finding the problems.</p>\r\n<p>You can use v1.7.2.23, if you set the password on each entry before extracting, like this:</p>\r\n<pre>    using (ZipFile zip = new ZipFile(zipToExtract))\r\n    {\r\n        foreach (ZipEntry file in zip)\r\n        {\r\n            file.Password = password;\r\n            file.Extract(extractDir);\r\n        }\r\n    }\r\n</pre>\r\n<p>If you download v1.7.2.24, you can also use the code you had.</p>\r\n<pre>    using (ZipFile zip = new ZipFile(zipToExtract))\r\n    {\r\n        zip.Password = password;\r\n        foreach (ZipEntry file in zip)\r\n        {\r\n            file.Extract(extractDir);\r\n        }\r\n    }\r\n</pre>\r\n<p>In this case, the extraction of the entry will use the password that you had set on the containing ZipFile.</p>\r\n<p>Thanks for reporting the problem.</p>",
    "PostedDate": "2009-06-12T03:43:12.623-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "200758",
    "ThreadId": "58929",
    "Html": "<p>Thanks Cheeso,</p>\r\n<p>works perfect now! Sorry to be such a pain in the arse, but to ease the pain a bid, I have made a little donation.</p>\r\n<p>Keep up the good work!</p>\r\n<p>Regards,</p>\r\n<p>Rob Segerink</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-06-12T04:03:28.283-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "200760",
    "ThreadId": "58929",
    "Html": "<p>Hey Rob, thanks for the donation, and thanks for reporting the problems to make DotNetZip better!</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-06-12T04:06:28.123-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]