惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
U
Unit 42
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
L
LangChain Blog
Engineering at Meta
Engineering at Meta
量子位
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
A
About on SuperTechFans
Y
Y Combinator Blog

博客园 - visi

【转】Linux常用命令大全 CIDR Metro风格应用程序的定位功能 拒绝关机理由 Windows server2008 R2 添加快速启动工具栏 Metro风格应用程序的UI基本概念 MS outlook 邮件换行问题 母版页site.master sharepoint HTTP Error 503 【转】windows server 2008 域中更改密码策略 window上使用GIT的个人经验(入门级) 使用google jquery api Action委托 VS里的配置数据库连接窗口调用 MY-SQL常用命令 SQL Server 的最大容量规范 修改WindowsServer2008系统文件权限 加入域错误,找不到网络路径 终于装上了office2010
aspnet下载文件到数据库并输出
visi · 2011-10-11 · via 博客园 - visi

            string path= "aa.pdf"; //Or URL 

            System.Net.WebClient w = new WebClient();

            byte[] f= w.DownloadData(path);

    //保存到数据varbinary字段类型中

            //取出后

            Response.AddHeader("Content-Disposition", "attachment;filename=d.pdf"); 

            Response.ContentType = "Application/pdf";

            Response.BinaryWrite(f);