× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



True, it just seems ironic to me that the ZIP API lets you set comments, but the UNZIP API has no option to read them.



-----Original Message-----
From: David Gibbs [mailto:david@xxxxxxxxxxxx]
Sent: Tuesday, January 30, 2018 11:41 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: Read ZIP comments

On 1/30/2018 11:33 AM, Justin Taylor wrote:
I need to read ZIP file comments. The QzipZip() API
(https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/apis/qzip
zip.htm) has the option to write comments, but the corresponding
QzipUnzip() API
(https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/apis/qzip
unzip.htm)
doesn't have the option to read them.

If I'm reading the description correctly, the QzipUnzip API doesn't _READ_ a ZIP ... it extracts files from a ZIP.

I wouldn't expect that API to care about ZIP comments.

I suspect you're looking for some kind of ZIP information API.

You might be able to roll your own using the information on this page: https://users.cs.jmu.edu/buchhofp/forensics/formats/pkzip.html

Alternatively, you might be able to use Java to extract information. https://docs.oracle.com/javase/6/docs/api/java/util/zip/package-summary.html

david


--
David Gibbs
midrange.com

IBM i on Power Systems: For when you can't afford to be out of business!

I'm riding 615 miles (Yes, you read that right) in the American Diabetes Association's Tour de Cure to raise money for diabetes research, education, advocacy, and awareness. You can make a tax deductible donation to my ride by visiting https://list.diabetessucks.net.

See where I get my donations from ... visit https://lsteml.diabetessucks.net/map for an interactive map (it's a geeky thing).

I may have diabetes, but diabetes doesn't have me!


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.