in reply to Re: Reading a zipped file (win32)
in thread Reading a zipped file (win32)

A quick glance at the docs for Archive::Zip reveals the existance of a low level routine named readChunks, which I expect will get you further in your quest.

You will however have to manage chunk boundaries and line endings logic yourself.

Update: The chunkSize parameter refers to the source data, ie compressed, so expecting compression ratios in the order of 95 % you will need to set this parameter sufficiently small as the inflated data can expand to ~ 20 times your requested chunksize.

HTH

Replies are listed 'Best First'.
Re^3: Reading a zipped file (win32)
by iburrell (Chaplain) on Jun 29, 2004 at 16:34 UTC
    Look at Archive::Zip::MemberRead. It allows reading members of zip files like a filehandle. The example from the docs reads through a contained file by lines.
    use Archive::Zip; use Archive::Zip::MemberRead; $zip = new Archive::Zip("file.zip"); $fh = new Archive::Zip::MemberRead($zip, "subdir/abc.txt"); while (defined($line = $fh->getline())) { print $fh->input_line_number . "#: $line\n"; }