如何从数据库中检索pdf文件 [英] how to retrieve pdf files from database
本文介绍了如何从数据库中检索pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
pdf文件的路径是这样的(E:/certificates/ssc.pdf).在本地系统中.我想检索pdf并使用silverlight显示pdf.
我在asp.net中使用了此代码.
pdf files path is there like(E:/certificates/ssc.pdf). in the local system. i want to retrieve the pdf''s and display the pdfs using silverlight.
i used this code in asp.net.
protected void LinkButtonDownloadPdf_Click(object sender, EventArgs e)
{
Response.ContentType = "Application/pdf";
Response.AppendHeader("Content-Disposition";"attachment; filename=Test_PDF.pdf");
Response.TransmitFile(Server.MapPath("~/Files/Test_PDF.pdf"));
Response.End();
}
如何在silverlight中转换以上代码
how to convert above code in silverlight
推荐答案
此CP文章: ^ ]有点旧,但可能会给您一些想法.
我也是在forums.silverlight.net上找到的.
http://forums.silverlight.net/t/70573.aspx [
This CP article: Blend PDF with Silverlight[^] is a little old, but may give you some ideas.
I found this at forums.silverlight.net as well.
http://forums.silverlight.net/t/70573.aspx[^]
这篇关于如何从数据库中检索pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文