如何在 IE 中显示 base64 编码的 pdf? [英] how to display base64 encoded pdf in IE?

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

问题描述

我正在尝试在 html 中显示使用 base64 编码嵌入的 pdf 文件.

I’m try to display pdf file which is embedded using base64 encoding in an html.

下面是我为此编写的代码.pdf 文件在 chrome 和 firefox 中显示,但不是在 Internet Explorer 中显示.任何想法如何让它在 IE 中工作?

Below is the code I have written for this. The pdf file is displayed in chrome and firefox but not internet explorer. Any Idea how to get it working in IE?

<object data="data:application/pdf;base64,Base64String =" type="application/pdf" width="100%" height="100%"/>

推荐答案

我相信正确的答案是你不能.http://msdn.microsoft.com/en-us/library/cc848897(v=vs.85).aspx

I believe the correct answer is you can't. http://msdn.microsoft.com/en-us/library/cc848897(v=vs.85).aspx

IE 中的 Base64 编码仅适用于某些图像类型,不适用于 PDF.

Base64 encoding in IE only works for certain image types and not PDF.

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

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