I need to "deflate" a data buffer and then embed that into another data stream before writing it out (I'm trying to write a bitmap into a new PNG file).
IO::Compress::Deflate appears to do the job and its doc says it "allows writing compressed data to files or buffer". All the methods and examples appear to write files. Am I wrong to interpret "buffer" as meaning an area of my program's working storage ($buffer)? Have I missed reading some crucial piece of documentation which should have been blindingly obvious? Am I using the wrong module altogether?
In reply to Keeping deflated data in memory by murrayn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |