I use JSZIP and FileSaver to do the job, which I wanted to put multiple images into a zip to download it at the client side. Below code worked for text.
var zip = new JSZip();
zip.file("abc.txt", "this is the content");
zip.generateAsync({type:"blob"}).then(function (blob) {
saveAs(blob, "hello.zip");
});
My problem is I have this http://example.com/abc.png. What should I do? convert the image to base64 first?
Please give me some hint to proceed thanks