大神能给我解释一下下面几个的意思么response.setHeader("Content-Disposition","attachment; filename=" + Name);response.setContentType("application/octet-stream; charset=utf-8");os.write(FileUtils.readFileToByteArray(downFile.getFile()))
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/26 20:21:20
大神能给我解释一下下面几个的意思么response.setHeader("Content-Disposition","attachment; filename=" + Name);response.setContentType("application/octet-stream; charset=utf-8");os.write(FileUtils.readFileToByteArray(downFile.getFile()))
大神能给我解释一下下面几个的意思么
response.setHeader("Content-Disposition",
"attachment; filename=" + Name);
response.setContentType("application/octet-stream; charset=utf-8");
os.write(FileUtils.readFileToByteArray(downFile.getFile()));
os.flush();
大神能给我解释一下下面几个的意思么response.setHeader("Content-Disposition","attachment; filename=" + Name);response.setContentType("application/octet-stream; charset=utf-8");os.write(FileUtils.readFileToByteArray(downFile.getFile()))
将响应.(“内容”处理,
"attachment; filename=" + Name);
“依恋;文件名=“+姓名);
response.setContentType("application/octet-stream; charset=utf-8");
响应.setcontenttype(“application/octet-stream;字符集是UTF-8”);
os.write(FileUtils.readFileToByteArray(downFile.getFile()));
OS.写(FileUtils.readfiletobytearray(downfile.getfile()));
os.flush();
flush() OS;