through AJAX I receive a image in base64 which I adjunct to the src attribute of a img tag.
I want to offer an option to download that image, is it possible to take the data of the src attribute and download it? This is because I cannot download the image again from the server.
Thank you.
Just set the
window.locationto the encoded URI (or open a popup window), eg