How to encode image data within an HTML file?
I'd like to be able to output an HTML file which includes an image (within the file itself). By Googling, I've come across a couple of ways to do this: javascript:imageData a data URI such as <IMG SRC="data:image/gif;base64,[...]"> <object ... > tag (although this uses a data URI, so may inherit the same limitations) But I don't know which is better supported by browsers, or if there are other alternatives. Can anyone with some practical experience of this offer me advice? Thanks. In regards to browser support, from Wikipedia : Data URIs are currently supported by the following web browsers: