This commit is contained in:
Günter Obiltschnig 2018-09-25 09:15:34 +02:00
parent 35cf889acd
commit bd0b767502

View File

@ -152,7 +152,8 @@ To decompress single files you must first parse a Zip file, and then decompress
ZipArchive arch(inp);
ZipArchive::FileHeaders::const_iterator it = arch.findHeader("data/hello.txt");
poco_assert (it != arch.headerEnd());
ZipInputStream zipin (inp, it->second);
inp.clear();
ZipInputStream zipin(inp, it->second);
std::ostringstream out(std::ios::binary);
Poco::StreamCopier::copyStream(zipin, out);
----