c# - Write PDF stream to response stream -


if have pdf file stream, how can write response output stream?

since using mvc, best way use filestreamresult:

return new filestreamresult(stream, "application/pdf") {     filedownloadname = "file.pdf" }; 

playing response.write or response.outputstream controller non-idiomatic , there's no reason write own actionresult when 1 exists.


Comments

Popular posts from this blog

Python __call__ special method practical example -

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -