public ActionResult GetFile()
{
var url="http://xxxxxx.com/abc.pdf";
System.Net.WebRequest myRequest = System.Net.WebRequest.Create(url);
System.Net.WebResponse myResponse = myRequest.GetResponse();
var file=myResponse.GetResponseStream();
return File(file,"application/pdf");
}
asp.net mvc获取网络文件转流并返回文件查看
最新推荐文章于 2023-04-11 16:05:02 发布