I followed the below link to edit the contents of a zip file and write to another zip file.
when i follow this it seems to work ok except for the last iteration where i get
java.util.zip.ZipException: invalid entry compressed size (expected 1780
but got 1787 bytes)
at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:217)
at com.dtcc.cdts.components.configdeploy.renameBRKXML.main(renameBRKXML.java:66)
i did have the
zos.write(buf, 0, (len < buf.length) ? len : buf.length);
Please help