Reading a chunked gzipped stream
Marc Lehmann
schmorp at schmorp.de
Fri Oct 26 01:04:16 CEST 2012
On Thu, Oct 25, 2012 at 09:43:40AM -0700, Marc Mims <marc at questright.com> wrote:
> I'm having difficulty implementing that. I'm wondering if this is a solved
> problem it perl and I just haven't found the correct CPAN module, yet.
I admit I only know zlib from the C side, but looking at
IO::Uncompress::Gunzip shows that it uses Compress::Raw::Zlib which exposes
the zlib API. All you'd need to do is feed the chunks into ->inflate (of a
Compress::Raw::Zlib::Inflate object). It looks as if Compress::Raw::Zlib is
reasonably well documented to get you going.
There is also a Compress::Zlib module, which supposedly is less raw - I
couldn't say what is less raw about it though, it seems to offer the exact
same API for inflating streams.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list