We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
无需解压 KMZ 文件,因为 Google 地图完全可以理解 您可以检查它,只需在 Google 地图网络中搜索您的 KMZ 文件所在的网址即可界面,它会在地图上显示其内容。
这是一个演示。
No need to unzip the KMZ file as Google Maps absolutely understands it. You can check it, simply search for the URL where your KMZ file is located in the Google Maps web interface and it will show its content on the map.
Here is a demo.
也许 Mozilla 的 ZipReader 可以满足您的需求。
https://developer.mozilla.org/en/nsIZipReader
Perhaps ZipReader from Mozilla can be used for what you are after.
https://developer.mozilla.org/en/nsIZipReader
DotNetZip 有一个 COM 接口,可以从 Javascript 访问。 它具有流到流解压缩功能,但我从未尝试过在 Javascript 中使用它。
我也从未尝试过在 IE 中以任何方式使用该库。
DotNetZip has a COM interface, that can be accessed from Javascript. It has a stream-to-stream unzip capability, but I have never tried using that from Javascript.
Also I have never tried using the library in any way from within IE.
kthoom 在二进制字符串上实现解压缩:http://kthoom.googlecode.com/
kthoom implements unzip on a binary string: http://kthoom.googlecode.com/
我知道这是一个老问题,有一个公认的答案,但只是为了有趣的信息,我会发布另一个答案。 我构建了一个纯 JavaScript 库,可以从任何浏览器读取和提取 zip 文件。 它不需要 Mozilla 的 ZipReader 或任何 ActiveX(除了 XMLHttpRequest)。
您可以在此处查看一个工作示例:
http://cheeso.members.winisp.net/Unzip-Example.htm
您可以从这里下载源代码:
http://cheeso.members.winisp.net/examples.aspx#js
I know this is an old question with an accepted answer, but just for the sake of interesting information, I'll post another answer. I put together a javascript-only library to read and extract zip files from any browser. It does not require Mozilla's ZipReader nor any ActiveX (aside from XMLHttpRequest).
You can see a working example here:
http://cheeso.members.winisp.net/Unzip-Example.htm
And you can download the source code from here:
http://cheeso.members.winisp.net/examples.aspx#js