Copy link to clipboard
Copied
[I tried researching this via Google, but the terms are so generic I didn't find any relevant hits]
I am working with files that originate via incoming emails as attachments. In CF I detach them from the emails and hand them off to other jobs for processing. Sometimes they are zipped files, and I have been using CFZIP to extract the actual data file and process it.
I started getting new files from a client and they are zipped (.ZIP file type), and if I open them from Outlook WinZip opens them just fine. If I open them in Notepad, they all start with "PK" which I have always believed to mean that they were zip (PKZIP) format, as opposed to other flavors such as GZip. But when the CF script tries to open that same file with CFZIP, it throws an Unsupported File Format error.
Any thoughts of diagnosing this error, to determine if it really is a valid ZIP format file? Are there any utilities out there that would give me info on exactly what program/algorithm was used for the compression process?
In the past when I've had these problems it was because the file was .GZ (Gzip format) and not .ZIP, and in those cases even Winzip indicated as much when it opened the file. But this is perplexing because Winzip seems to think the file is just fine, and CF doesn't.
Thanks for any ideas!
-reed
Copy link to clipboard
Copied
I should have mentioned that this is a CF8 box
Copy link to clipboard
Copied
No ideas, no. But could youn stick a sample "unsupported format" zip file somewhere I could grab and have a monkey around with?
Can you find out how these files are being created in the first place?
--
Adam
Copy link to clipboard
Copied
Would like to be able to post the file, but cannot do that since it contains the customer's data. Have been trying to find out how/where it gets created on their side, no luck yet.
thanks
reed
Copy link to clipboard
Copied
Can you open the ZIP file with like WinRAR or something, pull out the client-specific-file and put a test file in there? It might preserve the
erroring condition (depending on how WinRAR handles the recompression).
--
Adam
Copy link to clipboard
Copied
was this ever solved?
I've re-installed an old cf app on a new 64-bit box. the old app used CFX_ZIP and the old zip files won't open with CFZIP.
Any ideas?
Copy link to clipboard
Copied
Winzip supports some functionality that doesn't work with other zip programs, if I recall correctly. Perhaps these zip files use that functionality.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
Read this before you post:
http://forums.adobe.com/thread/607238