How to convert a pdf to a memory stream

后端 未结 3 1075
自闭症患者
自闭症患者 2021-01-05 00:37

I am writing an application in MVC4.

I have a physical pdf file on the server. I want to convert this to a memory stream and send it back to the user like this:

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-05 01:21

    Use an overload that uses a filename, see here. It's the easiest solution when you have a physical file.

提交回复
热议问题