标签:stream string 下载文件 path mem turn loaddata help nload
public static class StreamHelper
{
public static Stream DownloadFile(string path)
{
using (var client = new WebClient())
{
var stream = client.DownloadData(path);
var outStream = new MemoryStream(stream);
return outStream;
}
}
}
标签:stream string 下载文件 path mem turn loaddata help nload
原文地址:http://www.cnblogs.com/iainYang/p/6214938.html