Base64 string image data show in IE?

10,667

This should work in IE

<img src="data:image/gif;base64,<YOUR DATA>" alt="Base64 encoded image" width="150" height="150"/>

IE limits this in-line size to 32KB..

But there seems to be something wrong with your base64 data. It does not work on my tests in chrome,IE or anything.

http://jsfiddle.net/ppumkin/5JAjh/

Share:
10,667
user581157
Author by

user581157

Updated on September 03, 2022

Comments

  • user581157
    user581157 over 1 year

    I have a base64 string and i need to show it in my IE browser i tried with appending the

    data:image/gif;base64,R0lGODlhEAAOALMAAOazToeHh0tLS/7LZv/0jvb29t/f3//Ub/ /ge8WSLf/rhf/3kdbW1mxsbP//mf///yH5BAAAAAAALAAAAAAQAA4AAARe8L1Ekyky67QZ1hLnjM5UUde0ECwLJoExKcpp

    the above syntax it works fine in Firefox but does not work in IE ?? Any idea how d o i make my image be shown ? I am trying to set the src attribute from my code asp.net page code.

    Thanks