I am using the Zip utility package of Java and wanted to know how to create a zip file with no compression at all. Setting the level to 0 doesn\'t help. Is this right?
You need to use the STORED method, but this requires that you set the size, compressedSize and crc32 properties of the corresponding ZipEntry before you can call putNextEntry on the ZipOutputStream. You can precompute the CRC-32 by using a Crc32OutputStream.