将Adobe PDF浏览器插件的来源设置为字节流? [英] Set the source of Adobe PDF browser plugin to be a byte stream?
问题描述
是否有可能让Adobe Plugin的源代码成为PDF字节流?
如果是这样,这是如何在标记中声明的?
编辑1:
好的,让我详细说明一下。我建立了一个运行在Azure上的站点。该网站的后端是一个WCF网络服务,也在Azure上。
该网站的一个特定功能与报告有关。一旦用户选择了他们想要的报告类型,就会向服务发出一个请求,并将一个pdf文件的字节流作为响应发回。
现在,问题是用户如何查看文件?是否可以将Adobe Acrobat PDF插件的文档源设置为以下内容:
< OBJECT>
< PARAM src =asdfkjaskflasjdlfkjasd/> //字节流
< PARAM mimeType =application / pdf;/> //流的MIME类型
< / OBJECT>
编辑2:
好的没有人希望对此采取一些措施。然而,我所要求的唯一原因是因为完全可以使用以下代码设置图像的源代码:
< img class =myImageimg src =data:image / png; base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAA/>
凡是过了 image / png; base64
代表以base64字符串编码的图像的字节内容。
所以还是有可能的?
谢谢,我怀疑Adobe插件可以从 即使在某些浏览器中是可行的,您也将百分之百的确定无法以这种方式实现跨浏览器解决方案: 这是什么说话,仅仅在一个带有PDF内容类型的单独资源中提供字节流? Is it possible to have the source for an Adobe Plugin to be a PDF byte stream? If so, how would this be declared in markup? EDIT 1:
OK, so let me elaborate on this. I have built a site that runs on Azure. The site's back-end is a WCF web service, also on Azure. One particular functionality of the site has to do with reporting. Once the user selects the type of report they want, a request is made to the service and a byte stream of a pdf file is sent back as a response. Now, the question is how would the user view the file? Is it possible to set the Adobe Acrobat PDF plugin's document source to be something along the lines of: EDIT 2: OK, so no-one wants to take a crack at this. However, the only reason I am asking is because it is entirely possible to set the source of an image with the following code: where everything past the So is it still possible? Thanks, I doubt the Adobe plugin can be made to fetch PDF data from a And even if it is possible in some browsers, you will with 100% certainty not be able to achieve a cross-browser solution this way: What speaks against simply serving the byte stream in a separate resource with a PDF content-type? 这篇关于将Adobe PDF浏览器插件的来源设置为字节流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! data中获取PDF数据: / code> URL。
数据:
网址在IE< 8,并且限于32千字节'大小8和9 。
<OBJECT>
<PARAM src="asdfkjaskflasjdlfkjasd"/> //byte stream
<PARAM mimeType="application/pdf;"/> //stream's mime type
</OBJECT>
<img class="myImage" img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAA"/>
image/png;base64
represents the byte content of the image encoded as a base64 string.data:
URL. data:
URLs don't work in IE < 8 at all, and are limited to 32 kilobytes' size 8 and 9.