Reading the uncompressed GZIP file size in Ruby without decompression - Closer to Code

There are cases where you have a compressed GZIP file for which you want to determine the uncompressed data size without having to extract it.For example, if you work with large text-based documents, you can either display their content directly in the browser or share it as a file upon request depending on the file size.Luckily for us, the GZIP file format specification includes the following statement:.
Reading the uncompressed GZIP file size in Ruby without decompression - Closer to Code #ruby #rubydeveloper #rubyonrails #code https://rubyonrails.ba/single/reading-the-uncompressed-gzip-file-size-in-ruby-without-decompression-closer-to-code

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles