English 中文(简体)
如何在javascript展示图像/pdf的双面内容?
原标题:how to display a binary content of image/pdf in javascript?

我在从服务器下载的java字母变量中拥有图像/pdf的二元内容。 服务器将说明档案的类型。 我必须用各自的档案格式显示内容。 如果是形象,我就必须展示形象。 如果是pdf,则必须以pdf格式公布内容。 等等。 如何使双轨内容融为一体并显示它? 我已经找了。 但我找不到确切的解决办法。 I m 采用支流移动框架。 Pls帮助。

Edit:不开发移动设备。 该服务器提供二元内容的JSON反应。 如何用java文字显示,因为支离破碎的机动框架工作是用java文字进行的。

最佳回答

除非你愿意执行乌国防军的支部,否则这项任务几乎不可能完成。 你们应避免利用AJAX下载档案。 界定适当的<代码>Content-Type和Content-Disposition HTTP在服务器上头目,通过提供与档案的正常链接离开客户。

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签