Archive::Zip - how to create huge zip files ?

Discussion in 'Perl Misc' started by MoshiachNow, Oct 4, 2006.

  1. MoshiachNow

    MoshiachNow Guest

    Hi,
    My code is :

    my $zip = Archive::Zip->new();
    $zip->addFile("Updates.txt");
    $zip->writeToFileNamed($NAME1);

    However - If I'm zipping huge (20GB) database files into the zip - how
    and when should I write (writeToFileNamed) this zip file?I beleive
    Windows will not be able to keep this huge info in the memory...
    Thanks
     
    MoshiachNow, Oct 4, 2006
    #1
    1. Advertising

  2. MoshiachNow

    -berlin.de Guest

    MoshiachNow <> wrote in comp.lang.perl.misc:
    > Hi,
    > My code is :
    >
    > my $zip = Archive::Zip->new();
    > $zip->addFile("Updates.txt");
    > $zip->writeToFileNamed($NAME1);
    >
    > However - If I'm zipping huge (20GB) database files into the zip - how
    > and when should I write (writeToFileNamed) this zip file?I beleive
    > Windows will not be able to keep this huge info in the memory...


    Read the documentation of the module you are using. The section
    "OBJECT MODEL" explains that the object does *not* (necessarily)
    hold the data.

    Anno
     
    -berlin.de, Oct 4, 2006
    #2
    1. Advertising

  3. [A complimentary Cc of this posting was sent to
    MoshiachNow
    <>], who wrote in article <>:
    > However - If I'm zipping huge (20GB) database files into the zip


    Zip directory info has only 4byte-long integers. No go.

    Hope this helps,
    Ilya
     
    Ilya Zakharevich, Oct 4, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Graham Wood
    Replies:
    3
    Views:
    615
    A. Sinan Unur
    Jan 11, 2004
  2. Twig
    Replies:
    1
    Views:
    141
    A. Sinan Unur
    Jan 27, 2006
  3. MoshiachNow

    Archive::Zip - zip file has "invalid" format

    MoshiachNow, Oct 5, 2006, in forum: Perl Misc
    Replies:
    1
    Views:
    191
  4. Bo Yang
    Replies:
    9
    Views:
    332
    -berlin.de
    Nov 20, 2006
  5. Replies:
    1
    Views:
    116
Loading...

Share This Page