How can i display image in IE using base64 encodin

2019-07-28 05:56发布

问题:

I want to display image using base64 encoding in IE using GWT

If it is not possible can u please suggest me the alternate way except creating the image to serverside & sending URL to the client side

Can u help me ?

回答1:

Normally the syntax is:

<img src="data:image/gif;base64,DATA" />

where DATA is the base64-encoded image. However, IE doesn't support images of that form natively. It will work if you include the IE7 javascript library though, using this trick