Suppose I have the following base64 image:
<img alt="imagen de prueba" width="16" height="16" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAA……… />
When I run the view in the browser and show the image, when I download it, when I place save image as... in name, it appears with the name “download.png”. I would like to know how to put the real name or one that you want to the file to download.
The data URIs format does not allow you to specify a name for the file but you have other alternatives.
You could add a download link, put the name in the attribute
download
and the data again in the attributehref
One option is to use the button
download
if it works for you, looking like this:I clarify that this button does not work in Safari browsers.