Decompression of Files

Hi, I’d like to read an SVG file compressed into SVGZ format. In Java I
think I could use GZIPInputStream. Is there anything similar in Ruby?

Thanks.

Craig McDonnell wrote:

Hi, I’d like to read an SVG file compressed into SVGZ format. In Java I
think I could use GZIPInputStream. Is there anything similar in Ruby?

Yes. The Zlib module that comes with Ruby should be able to handle what
you want. See:

http://www.ruby-doc.org/stdlib/libdoc/zlib/rdoc/index.html


Philip R.
http://tzinfo.rubyforge.org/ – DST-aware timezone library for Ruby

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs