How to view document in mvc form memory stream
Question asked by Rakesh Patel - 9/30/2020 at 12:33 AM
I have memory stream in controller. Want to render it in mvc view 

1 Reply

Reply to Thread
Cem Alacayir Replied
Employee Post Marked As Answer
This is shown in the docs:

documentViewer.DocumentSource = new DocumentSource(
    new DocumentInfo("uniqueId", "InputFile.docx"),
    new StreamResult(stream)

Reply to Thread