daraosn / node-zip

217 stars 38 forks source link

How to download binary? #17

Open marcus2vinicius opened 7 years ago

marcus2vinicius commented 7 years ago
var fs = require("fs");
zip.file("test.txt", "hello there");
var data = zip.generate({base64:false,compression:"DEFLATE"});
fs.writeFileSync("test.zip", data, "binary");

using FileSaver.js

saveAs(data,"Test.zip"); or saveAs(new Blob([data]),"Test.zip");

does not work

eric-burel commented 6 years ago

Same here, did you figure this out?