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
Post a Comment