How To Create Zip Files Using Javascript?
I found a javascript plugin that could generate zip files, its called jszip. I tried it, but I think it could only generate the files that will be compiled in a zip file. What I wa
Solution 1:
Scroll down to the Documentation section on the page you linked to. It describes plainly how to add files to the zip file. For binary files you'll end up using base64, it looks like. For text files you can pass them straight in as strings. Of course you'll need access to the file data in order to add it to the zip file, which is easy enough if you're, say, retrieving said data in an Ajax request, but an uphill battle if you want the user to be able to zip files from his or her local storage.
Post a Comment for "How To Create Zip Files Using Javascript?"