When I try to decompress a ZIP file created by PKZIP/SecureZIP using a JAVA Class ZIP utility, I get a Stack-Trace, and the program ends. Why?
This is not a failure of PKZIP/SecureZIP. In this scenario, all of PKWARE products on Windows, z/OS, i5/OS, and UNIX/Linux (just as an example) will decompress this same file without a problem. There are only two possible resolutions to this issue: • Create the archive in the IFS where it is a real stream file. When an archive is built in a QSYS file it may contain unused bytes at the end since it is a file with fixed record length. • Ask the makers of the Java ZIP utility to add some tolerance to their ZIP utility like other ZIP developers have done. With both resolutions, the resulting output ZIP file will not have trailing characters. We are at the mercy of other file types within the DB File System if you opt to create the archive within QSYS.