Using apache poi - Zip Bomb detected

后端 未结 3 568
隐瞒了意图╮
隐瞒了意图╮ 2021-02-06 07:06

When I am trying to write data to excel sheet using apache poi which contains more than 64000 records, where SXSSF is used and I am getting the below error,

3条回答
  •  别那么骄傲
    2021-02-06 07:19

    The workaround is to add this line before you open the workbook:

    ZipSecureFile.setMinInflateRatio(0);
    

提交回复
热议问题