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

2021-03-31 21:25

阅读:651

标签:bom   nbsp   参考   str   fileinput   ted   The   secure   set   

技术图片

解决办法:

添加一行代码即可

ZipSecureFile.setMinInflateRatio(-1.0d);

 

参考:

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

 

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

标签:bom   nbsp   参考   str   fileinput   ted   The   secure   set   

原文地址:https://www.cnblogs.com/longronglang/p/13566016.html


评论


亲,登录后才可以留言!