Browse files

jszip-load : zip64 support (enhance issue #7)

Zip64 are generated for big files (> 4GiB, not really useful in a
browser) and when a stream is compressed (the zip utility doesn't know
the size, and uses zip64 for the worst case scenario).

Two other changes :
- The parser now read things backward (end of central dir, central dir,
  local files). Reading the file backward seems odd, but the zip format
  was designed to be read like that (and I have less troubles doing so).
- I also enforced the Stuk's coding style (to be coherent with the other
  • Loading branch information...
1 parent d71158b commit 482b3a92bb7a490af0f67d1d2b0802b8386fbbaa @dduponchel dduponchel committed Oct 29, 2011
Showing with 589 additions and 431 deletions.
  1. +3 −3 index.html
  2. +537 −411 jszip-load.js
  3. +5 −1 jszip.js
  4. +44 −16 test/index.html
  5. BIN test/ref/
  6. BIN test/ref/
@@ -144,7 +144,7 @@
<div id="header" class="grid_12">
<div class="alpha grid_5">
<h1>JS<span style="font-weight:100">Zip</span></h1>
- Create .zip files with Javascript
+ Create and read .zip files with Javascript
@@ -450,11 +450,11 @@ <h4 id="doc_load_data_options">load(data, options)</h4>
<li>Compression (<code>DEFLATE</code> with jszip-deflate.js)</li>
<li>zip with data descriptor</li>
+ <li>ZIP64</li>
<h5>Zip features not (yet) supported</h5>
<li>password protected zip</li>
- <li>ZIP64</li>
<li>multi-volume zip</li>
@@ -485,7 +485,7 @@ <h4 id="doc_filter_predicate">filter(predicate)</h4>
<h3 id="zip_load_limits">Loading zip files, limitations</h3>
The first limitation comes from the limited subset of supported zip features.
- Classic zip files will work but ZIP64, encrypted zip, etc are not supported
+ Classic zip files will work but encrypted zip, multi-volume, etc are not supported
and the load() method will throw an <code>Error</code>.
Oops, something went wrong.

0 comments on commit 482b3a9

Please sign in to comment.