Internet explorer 在google chrome和internet explorer浏览器上面临base64 pdf编码问题

Internet explorer 在google chrome和internet explorer浏览器上面临base64 pdf编码问题,internet-explorer,base64,Internet Explorer,Base64,我想在浏览器上显示pdf文件。为此,我使用了以下代码 <iframe id="sourceimage" scrolling="yes" height="900px" width="730px" style="background: #FFFFFF;" src="data:pdf;base64,<%=documentPreview.attributes.document%>"></iframe> 但除了mozilla firefox和safari之外,没有

我想在浏览器上显示pdf文件。为此,我使用了以下代码

<iframe id="sourceimage" scrolling="yes" height="900px" width="730px" style="background: #FFFFFF;" src="data:pdf;base64,<%=documentPreview.attributes.document%>"></iframe>

但除了mozilla firefox和safari之外,没有其他浏览器能够显示pdf文件。 有趣的是,在谷歌chrome上,当点击按钮查看文档预览时,它会自动下载。 我有谷歌浏览器(31.0.1650.63M版)和Internet explorer 11

这些浏览器有什么问题?解决这个问题的办法是什么?请帮忙