From: Jeremy Bopp Date: 2011-03-10T13:48:53+09:00 Subject: Re: Most simple usage of zlib or pr-zlib On 03/09/2011 06:50 PM, Nicholas Wieland wrote: > Unfortunately I'm on 1.9, but does archive-zip support both zip and gzip ? No, it does not and will not. While the two technologies share the same underlying compression codec, they each use the codec quite differently. A ZIP file is an archive of one or more files and directories each individually compressed, or possibly not compressed at all. A GZIP file is a compressed version of a single file's contents. Those contents could be, and often are, that of a TAR file which itself contains one or more uncompressed files and directories; however, this method of archival is completely different than that of a ZIP file. If you want to extract an actual GZIP file, take a look at Zlib::GzipReader included with the standard library: http://rdoc.info/stdlib/zlib/1.9.2/Zlib/GzipReader -Jeremy