开发者

Get option to prewiev or save file after upload

I got a pdf creator on my webapp where my user can create a pdf with different stats. How should I do so they get the option to prewiev or save the file right after the creation of开发者_StackOverflow社区 it? the file is saved.


Response.ContentType = "Application/pdf";
Response.AddHeader("content-disposition", "attachment;filename=" + fileNamn + ".pdf");
Response.BinaryWrite(dataPdf); //this is byte data*
Response.End();

*Make the pdf to byte data and put it in the BinaryWrite

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜