java.io.IOException: Zip bomb detected! The file would exceed the max.

时间:2020-08-29 16:39:18   收藏:0   阅读:153

技术图片

解决办法:

添加一行代码即可

ZipSecureFile.setMinInflateRatio(-1.0d);

 

参考:

FileInputStream file = new FileInputStream("D:\\newData.xlsx");
ZipSecureFile.setMinInflateRatio(-1.0d);
XSSFWorkbook wb = new XSSFWorkbook(file);

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!