方法一:

//这个值可以从配置文件读取,或者放个textbox让用户填

string path = "你的路径";
FileStream outputStream = new FileStream(path , FileMode.Create);

方法二:

直接用Response内置对象把文件以流的形式传到前端,浏览器自动就会识别下载了

相关文章:

  • 2021-04-26
  • 2021-07-19
  • 2021-10-17
  • 2021-06-22
  • 2022-12-23
  • 2021-10-01
  • 2021-11-06
  • 2022-01-20
猜你喜欢
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
相关资源
相似解决方案