견적서 첨부파일 다운로드 API 수정

This commit is contained in:
LAPTOP-L3VE7KK2\USER 2024-10-15 16:13:29 +09:00
parent 8f849e8821
commit 15bf8cae0c

View File

@ -421,7 +421,11 @@ public class ObjectService {
inputStream = new BufferedInputStream(new FileInputStream(file)); inputStream = new BufferedInputStream(new FileInputStream(file));
FileCopyUtils.copy(inputStream, response.getOutputStream()); FileCopyUtils.copy(inputStream, response.getOutputStream());
} else {
throw new QcastException(ErrorCode.INTERNAL_SERVER_ERROR);
} }
} else {
throw new QcastException(ErrorCode.INTERNAL_SERVER_ERROR);
} }
} catch (Exception e) { } catch (Exception e) {
throw new QcastException(ErrorCode.INTERNAL_SERVER_ERROR); throw new QcastException(ErrorCode.INTERNAL_SERVER_ERROR);