I have a base64-encoded image from the server for which I want to force the download through JavaScript. Is is possible?
Simple way to do this with Javascript...
var a = document.createElement("a"); //Create
a.href = "data:image/png;base64," + ImageBase64; //Image Base64 Goes here
a.download = "Image.png"; //File name Here
a.click(); //Downloaded file