public ActionResult DownLoad_File()
        {
            
            return File(ScLiu(PathUrl), "application/octet-stream", "sb.pdf");
            
        } 

public Stream ScLiu(string path)
        {
            using (System.IO.MemoryStream memStream = new System.IO.MemoryStream())
            {
                WebClient webClient = new WebClient();
                var obj = webClient.OpenRead(path);
                return obj;
            }
        }

 

相关文章:

  • 2021-07-04
  • 2021-11-29
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-02-12
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案