troubleshooting Question

Problems with deflate routine in a create-zip-file program

Avatar of MikeBroderick
MikeBroderick asked on
* zlib* zipped filesWindows 7
3 Comments1 Solution12 ViewsLast Modified:
I have a program that creates a zip file. It is starting to work, but when I try to compress the data using deflate, I get an error when trying to access any of the zipped files using PKZip for Windows or the Windows 10 file explorer (there is no additional info). I can open the file and traverse through the directory tree, but when I try to extract a file or display its contents, I get an error. For example "Unknown compression method for file C:\xxxxx. My deflate routine is the same one I have used in a create PDF program, it has been working for years. I tried altering the flate routine to build a gzip wrapper, and then no wrapper (for PDF the routine creates a zlib wrapper). None worked.

Is there a variant of the deflate routine that is different from PDF applications that I need to use to create zip files?

Does anybody know of a "zip-file-tester" app? The the unzip apps I am using basically say "you have an error" and nothing else. (or, is there a verbose option to get more detailed error messages?)

Thank you 
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros