I can embed graphics in an HTML report with img having the attribute src = "data:image/png;base64,base64_encoded_characters_go_here" .
It works great in all the browsers I tested.
The final obstacle, so far, is to embed the encoded favicon.ico file in the HTML report so that the browser does not execute GET.
So far, the best I have is one that requires favicon to appear publicly on our website. But this does not fully cope with the self-sufficient goal that we have stated. This decision requires me to provide a "shortcut" link, and if this is really the only way to do it, then so be it. But I would like to know for sure. I just don't want to have a directory full of favicon% d.ico version driven files.
Background...
I have XML => XSLT => an HTML desktop application that creates HTML reports that can be standalone and shared, say, through email attachments. Standalone character is useful for solving many version control problems that I don't want to solve. In fact, I decided most of them.
The goal, of course, to create standalone reports is that the recipient’s browser does not have to perform GET. Thus, stylesheets and most of the graphics are embedded / encoded on the HTML page without significantly increasing the size of the HTML report.
I am talking about all this to discuss many obvious questions about why I even want to do this. But keep in mind that this is not a website, it is just a report generator.
source share