Open pdf in Iframe passing byte data

10,295

Solution 1

We can handle this according to this. We can pass byte data in data of object.

<embed src="Path of file/(you can return file in byte form)"  width="960" height="900">
 </embed>

Solution 2

Why not just point the iframe to a specific aspx page that renders the pdf?

Share:
10,295
Pankaj
Author by

Pankaj

S/W Developer working on C#,ASP.NET and windows application.

Updated on June 04, 2022

Comments

  • Pankaj
    Pankaj almost 2 years

    Is there any way to open pdf on <iframe> or <object> passing byte[] data? i have pdf on byte form.i am using c#