에라모르겠다(‘◇’)?

[spring] zip bomb detected ! The file would exceed max 에러 발생 해결방법 본문

Language/Java

[spring] zip bomb detected ! The file would exceed max 에러 발생 해결방법

도토리즈 2023. 7. 28. 23:26

321kb 용량을 가진 엑셀 (시트 3개정도? 있었음) 의 시트 복사해서

새로운 엑셀로 생성하는 과정에서 발생한 오류이다 

wookbook 객체를 생성하기 전에 해당 코드를 넣어주면 된다고 한다

ZipSecureFile.setMinInflateRatio(0);

 

▼ 아래 참고 ! 

ZipSecureFile.setMinInflateRatio(0);

Workbook workbook = new XSSFWorkbook();

https://stackoverflow.com/questions/44897500/using-apache-poi-zip-bomb-detected

 

Using Apache POI - Zip Bomb detected

When I am trying to write data to an Excel sheet, using Apache POI which contains more than 64000 records, where SXSSF is used, I am getting the below error: Zip bomb detected! The file would exce...

stackoverflow.com

 

Comments