in reply to uncompress gzip data in a callback

I have never actually tried doing this before, but you did say 'any assistance'...

You may have more success with Compress::Raw::Zlib. It is much more painful to work with, but should allow you to decompress chunk-by-chunk.

For your current attempt, how are you 'appending' the chunks together? I do not believe the string-catenation operator will work properly in this case.

Replies are listed 'Best First'.
Re^2: uncompress gzip data in a callback
by Weevil (Novice) on May 03, 2010 at 22:31 UTC
    I'll give Compress::Raw::Zlib a go, thanks for the advice. Yes I'm using the concat operator. It seems to be ok - if I use it to concat all the data I can ungzip it after the fact, but that means I have to wait for all the data to arrive before I can output it.