How do I compress a string in ruby?
Raghu Go wrote:
How do I compress a string in ruby?
Here’s one way:
require “zlib”
Zlib::Deflate.deflate(“a string”)
See http://ruby-doc.org/stdlib/libdoc/zlib/rdoc/index.html
-Justin
How do I compress a string in ruby?
Raghu Go wrote:
How do I compress a string in ruby?
Here’s one way:
require “zlib”
Zlib::Deflate.deflate(“a string”)
See http://ruby-doc.org/stdlib/libdoc/zlib/rdoc/index.html
-Justin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs