Download And Zip Files Client Side
I'm quite JS newbie and I'm wondering about some idea. Can javascript be used to download file/multiple files from given url/s on the client side and zip 'the stream' on the fly? I
Solution 1:
If the following use case is correct: user selects a bunch of files to zip and the browser zips them up and serves them back to the user.
Then you can use the following library: zip.js
You can check out the demo here
Solution 2:
To solve this exact problem, I created a library to stream multiple files directly into a zip on the client-side. The main unique feature is that it has no size limits from memory (everything is streamed) nor zip format (it uses zip64 if the contents are more than 4GB).
Since it doesn't do compression, it is also very performant.
Post a Comment for "Download And Zip Files Client Side"