如何使用base64编码方法在IE中显示图像? [英] How can i display image in IE using base64 encoding method?

查看:634
本文介绍了如何使用base64编码方法在IE中显示图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用GWT在IE中显示使用base64编码的图像

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

如果不可能,请你建议我替代方法,除了创建图像到服务器端;发送URL到客户端

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

可以帮我吗?

推荐答案

通常语法是:

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

其中 DATA 是base64编码图像。然而,IE本身不支持该形式的图像。如果您包含 IE7 javascript库,则使用这个技巧

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

这篇关于如何使用base64编码方法在IE中显示图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆