on-internet
← Community

Can I send a memorystream to an HTML element on an ASP.NET webpage?

Stack Overflow ·

Is it possible to send a memorystream like a file to an HTML <embed> The idea is not creating a file in the hard drive. I have created the stream and I can download the file no problem, the problem is passing to the variable to send to the aspx page so I can use it to show the file on a particular div. Is it possible without creating a file in the disk? This is the Code I have: public string ExportMemoryPdf(DataTable dtpdf, String Path) { string User = System.Web.HttpContext.Current.User.Identity.Name.ToString(); string Date = DateTime.Now.ToString(); string Year = DateTime.Now.ToString("yyyy"

Comments

Sign in or sign up to comment and upvote.

No comments yet.