|
|
|
@ -438,9 +438,7 @@ public class IdcServiceImpl implements IdcService {
|
|
|
|
|
public void downloadFile(String fileName,HttpServletResponse response) {
|
|
|
|
|
OutputStream os;
|
|
|
|
|
String filePathSlash = filePath.substring(filePath.length() -1).equals("/") ? "" : fileName.substring(0,1).equals("/") ? "" : "/";
|
|
|
|
|
if(!FileUtils.isFileExist(filePath+filePathSlash+fileName))
|
|
|
|
|
fileName = "11.jpg";
|
|
|
|
|
logger.info(filePath+filePathSlash+fileName);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
if(FileUtils.isFileExist(filePath+filePathSlash+fileName)) {
|
|
|
|
|
byte[] bytes = FileUtils.readFileByBytes(filePath+filePathSlash+fileName);
|
|
|
|
|