Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CFZIP problems - Unsupported File Format

Enthusiast ,
Nov 23, 2010 Nov 23, 2010

[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

1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 23, 2010 Nov 23, 2010

I should have mentioned that this is a CF8 box

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 24, 2010 Nov 24, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 24, 2010 Nov 24, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 26, 2010 Nov 26, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 27, 2011 Jun 27, 2011
LATEST

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 25, 2010 Nov 25, 2010

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

Dave Watts, Eidolon LLC
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources