Reading a binary file and using Response.BinaryWrite()

后端 未结 10 1926
既然无缘
既然无缘 2020-11-28 12:16

I have an app that needs to read a PDF file from the file system and then write it out to the user. The PDF is 183KB and seems to work perfectly. When I use the code at th

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-28 12:20

    Please read this before using Response.TransmitFile: http://improve.dk/blog/2008/03/29/response-transmitfile-close-will-kill-your-application

提交回复
热议问题