Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I've developed an perl/java application that as part of it's functionality allows users to upload files that are them stored in a zip archive, an archive being created for each batch of files uploaded. The archives are then displayed on a web page for users to download. This works fine within the intranet that the unix web server is deployed on, for both unix and windows clients and it works for external unix clients. However, when an external windows client downloads a zip archive, although the archive lists the files correctly, they have a size of zero and are empty. I'm using the standard java zip library for this aspect of the application. Can anyone suggest a possible reason for this behaviour or alternatively is there a comparable perl zip library I could use ?
TIA

Replies are listed 'Best First'.
Re: zip problem
by bart (Canon) on Sep 01, 2002 at 20:20 UTC
    ... or alternatively is there a comparable perl zip library I could use?
    I hope this is what you mean: yes there is a module for Perl to produce ZIP files: Archive::Zip, which is built on top of Compress::Zlib. So far, I've only had good experiences with it.

    I believe that Compress:Zlib comes with ActivePerl for Windows.

Re: zip problem
by Anonymous Monk on Aug 31, 2002 at 18:33 UTC
    Seems to be a problem with Winzip version 6, works fine with Winzip version 8.