My objective is to display a PDF in a html-<object> from a memory stream.
From C# code behind I can get a PDF from a Memory Stream to display in a browser like this, This will effectively covert the whole browser to a PDF reader (not ideal) since I lose my application controls etc. I'd like to keep the feel of the application like everything is inside one form:
    MyWeb.Service.Retrieve.GetPdfById r = new MyWeb.Service.Retrieve.GetPdfById();
            MemoryStream byteStream = new MemoryStream(r.Execute("705"));
            Response.Clear();
            Response.ContentType = "application/pdf";
            Response.AddHeader("content-disposition", "inline; filename=dummy.pdf");
            Response.AddHeader("content-length", byteStream.Length.ToString());
            Response.BinaryWrite(byteStream.ToArray());
            Response.End();
In HTML I can get a PDF to display within an <object> like this, this means I can display it ideally in a <div> but it's not from a dynamically generated memory stream:
    <object data="PDF_File/myFile.pdf" type="application/pdf" width="800px"height="600px">
      alt : <a href="PDF_File/myFile.pdf">TAG.pdf</a>
    </object>
So how do I get the memory stream into the HTML-<object> please?
 
     
     
    