3 ms·
I wrote something similar in JS https://github.com/gildas-lormeau/zip.js/blob/master/WebContent/zip.js https://github.com/gildas-lormeau/zip.js/blob/master/Web
by gildas 15y ago
I wrote something similar in JS
https://github.com/gildas-lormeau/zip.js/blob/master/WebContent/zip.js https://github.com/gildas-lormeau/zip.js/blob/master/WebCont...
The HttpRangeReader class is able to extract a file from the zip without downloading the whole zip. Thanks to new Blob APIs , extracting data from a zip without compression is quite fast. Then, you just have to use url.createObjectURL to convert the Blob object into a URL.