Can Poco add zip support for buffer?

A general discussion forum.
hmv
Posts: 4
Joined: 01 Apr 2011, 05:04

Can Poco add zip support for buffer?

Postby hmv » 01 Apr 2011, 05:09

I need in memory data compress/decompress operation. The zip in current Poco only support file or stream. Does there any plan to support buffer zip?
thanks.

guenter
Posts: 1185
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Can Poco add zip support for buffer?

Postby guenter » 01 Apr 2011, 12:13

If you simply need in-memory compression in gzip/deflate format, you can use Poco::Deflating*Stream and Poco::Inflating*Stream. These work on all kinds of streams, including Poco::MemoryStream.

hmv
Posts: 4
Joined: 01 Apr 2011, 05:04

Re: Can Poco add zip support for buffer?

Postby hmv » 02 Apr 2011, 07:29

Thanks, I've found example code.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest