Does Base64 string image data show in IE?

I have a base64 string and I need to show it in my IE browser, I tried adding

data: images / GIF; base64, R0lGODlhEAAOALMAAOazToeHh0tLS / 7LZv / 0jvb29t / f3 // Ub / / Ge 8WSLf / / 3kdbW1mxsbP // MF /// yH5BAAAAAAAAAeQLUJLUJLUJL1JU1JU1JU1JU1JU1JU1JU1JU1JU1JU1JU1JU1JU1JU1J1

The syntax above works fine in Firefox, but doesn't work in IE? Any idea how to show my image? I am trying to set the src attribute from asp.net code code code.

thank

+3
source share
1 answer

This should work in IE

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

IE limits this line size to 32 KB.

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

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

+2
source

All Articles