in reply to Archive::Zip error when reading a zip file format error: bad signature
There is an assumption that the zip file in question is not corrupted. Have you verified this assumption?
Since you haven't said what you're doing, and the file sizes suggest that all you need to do is read/extract a part of the file. If so, this might be some good information: Per Archive::Zip's documentation:
If you are just going to be extracting zips (and/or other archives) you are recommended to look at using Archive::Extract instead, as it is much easier to use and factors out archive-specific functionality.
A quick search of Archive::Zip doesn't suggest there's a file size ceiling. Can you point that out to me? Are you using the latest?
In the event you have no control over the zip file you're processing, you always have the BigHammer(tm) approach of unzip the file with an external tool, grab what you want, and wipe out the temp folder.
I'm not sure if switching to tar with gzip would get you any traction or not. The heart of tar is designed for dealing with these kinds of massive files. Since you're in a *NIX toolchain for the creation, it might be worth looking at.
You probably already know this, but the underlying filesystem is going to matter. There's an assumption that FAT32 isn't anywhere in the chain, but that is an assumption. Having been burned in the past by overlooking the obvious, I mention this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Archive::Zip error when reading a zip file format error: bad signature
by mhd.tahawi (Initiate) on Aug 01, 2014 at 12:55 UTC | |
by ww (Archbishop) on Aug 01, 2014 at 13:52 UTC | |
by mhd.tahawi (Initiate) on Aug 01, 2014 at 14:06 UTC |