Displaying images in webpage without src URL

Posted by Babiker on Stack Overflow See other posts from Stack Overflow or by Babiker
Published on 2010-12-24T23:24:11Z Indexed on 2010/12/24 23:54 UTC
Read the original article Hit count: 215

Filed under:
|
|
|
|

Recently i learned that i can display images in a web page without referencing an image URL as follows :

<img class="disclosure" img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oIGRQbOY8MjgMAAABVSURBVBjTfc6xDcAwCETRM0rt5nbA+49j70DDAqSLsGXyJQqkVxxwNOeMiEA+waW1VuT/inrvG7wikht8UETy2ygVMjO4O8YYTf6AqrZyUwYlygAAXo+QLmeF4c4uAAAAAElFTkSuQmCC">

I had another small bmp image that i wanted to display, so i opened it in vim and the img source looke like:

alt text

When i paste this code where it needs to be pasted i only get "BM?"

  • How to i convert/paste this code properly to be used as an image source?

© Stack Overflow or respective owner

Related posts about html

Related posts about image