C#下载文件,Stream 和 byte[] 之间的转换

stream byte 等各类转换 
http://www.cnblogs.com/warioland/archive/2012/03/06/2381355.html

using (System.Net.WebClient wc = new System.Net.WebClient())
{
wc.DownloadFile("你的图片的URL地址"@"d:\mobile.gif");//保存到本地的文件名和路径
}
//WebClient方法 

 

posted @ 2018-03-06 17:21  程序猿kid  阅读(490)  评论(0编辑  收藏  举报