|
@@ -287,7 +287,9 @@ public class CompatibleOldFileServiceImpl implements CompatibleOldFileService {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- IoUtil.copy(service.download(fileInfo.getFileBucket(),fileInfo.getFilePath(),response,fileInfo.getFileName()),response.getOutputStream());
|
|
|
+ InputStream inputStream = service.download(fileInfo.getFileBucket(), fileInfo.getFilePath(), response, fileInfo.getFileName());
|
|
|
+ IoUtil.copy(inputStream,response.getOutputStream());
|
|
|
+ IoUtil.close(inputStream);
|
|
|
|
|
|
|
|
|
|