[
  {
    "Id": "215721",
    "ThreadId": "63440",
    "Html": "<p>I am trying to open a KMZ file within a C# application in order to access the files within the archive.&nbsp; The library does not recognize this as a zip file, even though the documentation that I've found on *.kmz files states that they of the ZIP format.&nbsp; Is there a way I can get DotNetZip to open these type of files?</p>",
    "PostedDate": "2009-07-24T06:15:25.82-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "215743",
    "ThreadId": "63440",
    "Html": "<p>&quot;The library does not recognize this as a zip file&quot;</p>\r\n<p>What's the error you get?</p>\r\n<p>I don't know what a KMZ file is.&nbsp; if you could make it available to me, I'd be happy to look at it.</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-07-24T07:24:27.32-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "215751",
    "ThreadId": "63440",
    "Html": "<p>A KMZ file is a compressed archive of Google Earth data files.&nbsp; Typically the file extension is *.kmz.</p>\r\n<p>I just found a nugget on <a href=\"http://code.google.com/support/bin/answer.py?answer=55211&topic=10427\">this page</a> that recommends to simplly change the file extension from *.kmz to *.zip and I should be able to manipulate it. I just tested this in my app and, once I change the extension, I don't have any problems.</p>",
    "PostedDate": "2009-07-24T07:58:40.68-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "215756",
    "ThreadId": "63440",
    "Html": "<p>The <em>library</em> doesn't care about the name of the file ??</p>",
    "PostedDate": "2009-07-24T08:10:05.413-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "215760",
    "ThreadId": "63440",
    "Html": "<p>I'm not sure I was entirely clear in my second post.</p>\r\n<p>Originally, I used a line in my code like this<span style=\"font-size:x-small\">\r\n<div style=\"color:Black;background-color:White\">\r\n<pre>ZipFile zf = <span style=\"color:Blue\">new</span> ZipFile(<span style=\"color:#A31515\">@&quot;Data\\MyPlaces.kmz&quot;</span>);\r\n</pre>\r\n</div>\r\n&lt;font size=&quot;2&quot;&gt;\r\n<p>After I read the link that I referenced above, I made a copy of MyPlaces.kmz and renamed the copy to &quot;MyPlaces.zip&quot;.&nbsp; Then in my code I switched the line to</p>\r\n&lt;/font&gt;</span></p>\r\n<p>&nbsp;</p>\r\n<pre>ZipFile zf = new ZipFile(@&quot;Data\\MyPlaces.zip&quot;);</pre>\r\n<p>and I was able to access the contents of the file.</p>\r\n<p>I'm not sure why Google felt the need to create a new extension for a common file compression format.&nbsp; It seems to indicate that I have do a file copy and rename before I unzip the file in my program.</p>",
    "PostedDate": "2009-07-24T08:19:32.56-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "215768",
    "ThreadId": "63440",
    "Html": "<p>Ah, I see.</p>\r\n<p>To avoid the rename, you can use the ZipFile.Read() method, instead of the constructor.</p>\r\n<pre>  ZipFile zf = ZipFile.Read(@&quot;Data\\MyPlaces.kmz&quot;);\r\n</pre>\r\n<p>Of course you should wrap that in a using clause:</p>\r\n<pre>  using (ZipFile zf = ZipFile.Read(@&quot;Data\\MyPlaces.kmz&quot;)) \r\n  {\r\n      //..\r\n  }\r\n</pre>",
    "PostedDate": "2009-07-24T08:47:03.483-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "215769",
    "ThreadId": "63440",
    "Html": "<p>Oh, cool...&nbsp; That really helps (and sure saves on having to rename).</p>\r\n<p>Thanks!</p>",
    "PostedDate": "2009-07-24T08:56:51.237-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "502614",
    "ThreadId": "63440",
    "Html": "<p>there are good reasons (document management) why these files are given an extension different to ZIP.</p>\r\n<p>There are many zip files formats that are directly opened by their respective applications: docx / xlsx / pptx in MS Office...</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-10-05T10:38:46.627-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]