如何显示的base64恩在IE codeD上的PDF? [英] how to display base64 encoded pdf in IE?
问题描述
我试图显示其是在HTML中使用base64编码嵌入PDF文件。下面是code我已经为这个写的。 PDF文件显示在Chrome和Firefox,但不是Internet Explorer。
任何想法如何得到它的工作在IE?
I’m try to display pdf file which is embedded using base64 encoding in an html. 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?
对象数据=数据:应用程序/ PDF格式; BASE64,Base64String =TYPE =应用程序/ PDFWIDTH =100%HEIGHT =100%/
object data="data:application/pdf;base64,Base64String =" type="application/pdf" width="100%" height="100%"/
推荐答案
我认为正确的答案是你不能。
http://msdn.microsoft.com/en-美国/库/ 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.
这篇关于如何显示的base64恩在IE codeD上的PDF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!