Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an element
HTML
<object data="MyTestPDF.pdf" type="application/pdf"/>

to open PDF inside
HTML
<div>
.

Now, i need to pick pdf from document server (at server side [.cs]) and somehow assign pdf byte array to
HTML
<object data="">


How can i use PDF byte[] to be shown inside <object> or if there is any other alternative

Note: I pick pdf from document server (as byte array), which is not hosted at the same location.
Posted

1 solution

u can use iframe to show pdf inside the html page

 
Share this answer
 
Comments
Zubair Alie 11-Feb-14 8:14am    
am currently using iframe but want to not to use extra pages for single task. have found a way to show pdf on page using <object> tag but now how to assing byte[] to its attribute [data] is a problem :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900