ZipOutputStream out=new ZipOutputStream(new FileOutputStream(zipFileName));
?out.setMethod(ZipOutputStream.STORED);
遇到报错:java.util.zip.ZipException: STORED entry missing size, compressed size, or crc-32
解决:ZipEntry?增加size和CRC32
ZipEntry entry = null;
...
entry.setSize(file.getValue().length);
entry.setCrc(getCRC32Checksum(file.getValue()));
相关测试代码:https://download.csdn.net/download/zhang_jingrui/19082860