Friday, October 7, 2011

Embedding/Encoding an image with data (jpg, png, gif ..) inside a web page [html]

Supported in IE9+ (not IE8), Chrome 14.0.835.202 m (all I tested with)

<img src="data:image/png;base64,Base64-Encoded-Data
         width="67" height="67" class="logo" border="0" alt="logo" />        

No comments: