I have a base64-encoded image from the server for which I want to force the download through JavaScript. Is is possible?
If you already have it in base64, add the image tag in front of the base64. attach it to the element
png64 = "data:image/" + png64;
$('#downloadPNG').attr('href', png64);
Add the file name that you want when downloading to the download
tag.
Export img