7
I wanted to create a link to a dowload in my HTML, but I didn’t want to save this content in a separate file, but in the html itself.
In images you can do something like this
<img alt="Embedded Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." />
Will for links is also possible?
Are you looking to convert a file to Base64 and send it to HTML? So by clicking on the link the user will download this file? If it is not advisable, because your HTML will get heavy and it will take a long time to load, not knowing if the person wants to download the file or not.
– lionbtt
That, but I’m not worried about the file size, it’s small
– Jader Dias