ASP.NET下载远程Flash如何保存到本地?
时间:2010-10-18 来源:bullion
怎么把这个流保存成Flash文件呢??
StreamReader reader = new StreamReader(s);
FileStream fs = new FileStream("保存地址", FileMode.OpenOrCreate, FileAccess.Write);
StreamWriter writer = new StreamWriter(fs);
writer.Write(reader.ReadToEnd());
这么写保存下来的Flash打不开,怎么才能把这个流保存成Flash文件呢??
解决方案:
WebClient wc = new WebClient();
wc.DownloadFile("http://xx.swff",Server.MapPath("~/xx.swf"));
相关阅读 更多 +