newlangwen

   docName = new String(docName.getBytes("utf-8"), "iso8859-1");

   response.setContentType("application/x-msdownload");

   response.setHeader("Content-Length", String.valueOf(file.length()));

   response.setHeader("Content-disposition", "attachment;filename="+ docName);

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-11-29
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2022-03-02
  • 2021-11-23
猜你喜欢
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-05-19
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案