Boost logo

Boost :

Subject: Re: [boost] unzip .zip file and browse to compressed files
From: Phil Endecott (spam_from_boost_dev_at_[hidden])
Date: 2010-01-27 05:38:18


Andrej van der Zee wrote:
> I am looking for a way to uncompress a zip-file (which contains multiple
> files/dirs) and browse through the contents. Does boost provide support
> for the first part? I looked at iostreams with a zlib uncompressor, but
> as far as I can see it assumes a single zipped file.

Hi Andrej,

I don't believe Boost has anything that can do this.

I have had success using "MiniZip" by Gilles Vollant. It's just a
handful of C files. A simple C++ wrapper is easy to write.

Beware that there are many variants of the zip format; this is OK if
you have control over the files that are being decompressed, but it's a
pain if the end user can submit anything and expect it to work.

Regards, Phil.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk