Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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?

0
10 Posted

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?

0
10

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123