{"id":100,"date":"2007-08-08T16:21:00","date_gmt":"2007-08-08T14:21:00","guid":{"rendered":"http:\/\/appinf.com\/poco\/blog\/?p=100"},"modified":"2007-08-08T16:21:00","modified_gmt":"2007-08-08T14:21:00","slug":"pocozippocossh-now-available-on-sourceforge","status":"publish","type":"post","link":"https:\/\/pocoproject.org\/blog\/?p=100","title":{"rendered":"PocoZip+PocoSSH &#8211; now available on Sourceforge"},"content":{"rendered":"<p>With the release of Poco 1.3.1, we decided to add some little extra: the PocoZip library is now available public, as is PocoSSH.<br \/>\nPocoZip allows you to easily compress\/decompress Zip files, decompression works even on the fly, e.g. while data is downloaded from the network.<br \/>\nSee the testsuite and the attached code examples to get an idea on how to use the library.<br \/>\nI hope you like the library and if someone decides to add support for more compression\/decompression options (e.g. deflate64), we&#8217;ll gladly accept that offer \ud83d\ude09<\/p>\n<p>PocoSSH is pretty much done, except the ftps support.<\/p>\n<p>Note that the library is not part of the standard download but has to be retrieved via SVN from the sandbox directory.<\/p>\n<p>Some code examples:<br \/>\n<code><br \/>\nstd::ofstream out(\"pocobin.zip\", std::ios::binary);<br \/>\nPoco::Path aDir(\"p:\\\\poco\\\\Foundation\\\\include\");<br \/>\naDir.makeDirectory();<br \/>\nCompress c(out, true);<br \/>\nc.addRecursive(theFile, ZipCommon::CL_MAXIMUM, false, aDir);<br \/>\n\/\/ c.close() returns a ZipArchive that contains info about the Zip file<br \/>\nZipArchive archive = c.close();<br \/>\n<\/code><\/p>\n<p>And for decompression:<br \/>\n<code><br \/>\nstd::ifstream inp(\"test.zip\", std::ios::binary);<br \/>\nDecompress dec(inp, Poco::Path()); \/\/ decode to current dir<br \/>\ndec.decompressAllFiles();<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the release of Poco 1.3.1, we decided to add some little extra: the PocoZip library is now available public, as is PocoSSH. PocoZip allows you to easily compress\/decompress Zip files, decompression works even on the fly, e.g. while data is downloaded from the network. See the testsuite and the attached code examples to get [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-100","post","type-post","status-publish","format-standard","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100"}],"version-history":[{"count":0,"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions"}],"wp:attachment":[{"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}