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.


In reply to Re: Archive::Zip error when reading a zip file format error: bad signature by jellisii2
in thread Archive::Zip error when reading a zip file format error: bad signature by mhd.tahawi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.