你的位置:首页 > 软件开发 > ASP.net > MVC下载远程文件流(WebClient)

MVC下载远程文件流(WebClient)

发布时间:2015-11-02 16:03:45
public ActionResult DownLoad_File() { return File(ScLiu(PathUrl), "application/octet-stream", "sb.pdf"); ...
public ActionResult DownLoad_File()    {            return File(ScLiu(PathUrl), "application/octet-stream", "sb.pdf");          } public Stream ScLiu(get='_blank'>string path)    {      using (System.IO.MemoryStream memStream = new System.IO.MemoryStream())      {        WebClient webClient = new WebClient();        var obj = webClient.OpenRead(path);        return obj;      }    }

原标题:MVC下载远程文件流(WebClient)

关键词:web

web
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。