|
|
|
@ -115,7 +115,8 @@ public class FileUploadServiceImpl implements IFileUploadService {
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
//获取要下载的文件
|
|
|
|
//获取要下载的文件
|
|
|
|
File file = new File(saveFilePath + "/" + path);
|
|
|
|
// File file = new File(saveFilePath + "/" + path);
|
|
|
|
|
|
|
|
File file = new File(path);
|
|
|
|
|
|
|
|
|
|
|
|
//设置响应的内容类型为二进制流,即文件类型
|
|
|
|
//设置响应的内容类型为二进制流,即文件类型
|
|
|
|
response.setContentType("application/octet-stream");
|
|
|
|
response.setContentType("application/octet-stream");
|
|
|
|
|