Questions tagged [gzip]

GZip/gzip is both the name for a compressed data format and any of several software applications implementing this format. Use this tag for questions about implementing the library on your program.

gzip is the name for the compressed data format used by the eponymous GZip application for compressing and decompressing data.

The format is based on the deflate compressed data format, with the addition of a file metadata header and a CRC32 checksum. It is defined in RFC 1952. It is commonly used to compress HTTP requests and responses, and also often combined with the tar format for archival.

The most known standalone command-line implementation is GNU zip. The format is also implemented by the zlib library, and in this form used in many applications.

GZip on Wikipedia

6057 questions
3
votes
1 answer

boost filtering_istream gzip_decompressor uncompressed file size

I am using the boost filtering stream object to read gzipped files. Works great! I would like to display a progress bar for the amount of the file that has been processed. I need find the input uncompressed file size. Does the gzip decompressor…
Dan
  • 1,339
  • 3
  • 13
  • 19
3
votes
1 answer

Compressing the request data sent to django server

I would like to be able to compress the data sent from a client to a django server. The data I need to compress is mainly binary, but some endpoints receive also large jsons with binary data encoded to base64. I've found lots of info regarding the…
odedfos
  • 4,491
  • 3
  • 30
  • 42
3
votes
3 answers

parallel : how to pass options to commands

For parallelizing gzip compression: parallel gzip ::: myfile_* does the job but how to pass gzip options such as -r or -9 I tried parallel gzip -r -9 ::: myfile_* and parallel gzip ::: 9 r myfile_* but it doesn't work. when I tried parallel…
WYSIWYG
  • 494
  • 6
  • 23
3
votes
0 answers

GZIP JSON AJAX response text is empty

I am facing a problem, while encoding the response that I send back for an AJAX request, using GZIP. Can anyone give me some pointers on this please? There is an AJAX request from the JSP, An action class (Struts) at the server side handles the…
Rohitesh
  • 31
  • 1
  • 2
3
votes
1 answer

GZIP Compression Java/C# difference in compression issue

I'm adding in compression to my project with the aim of improving speed in the 3G Data communication from Android app to ASP.NET C# Server. The methods I've researched/written/tested works. However, there's added white space after compression. And…
Uknight
  • 711
  • 6
  • 9
3
votes
1 answer

Trying to feed a gz file to a c++ program

I have a c++ program which has some command line options. One of them is the file name. The file size is big so I decided to compress it and then try to find a way that the c++ program read the compressed file instead of the plain text…
mahmood
  • 23,197
  • 49
  • 147
  • 242
3
votes
2 answers

Gzip not working on local development

I am using a Kohana minifier module to compress less/ css and js files into type combined files. /less/f31e419e939bfec51b4fe8322f545455.less?r=20130618 /js/24dae189814109f20ff9a5bf4422be36.js?r=20130618 I am using MAMP PRO but receive the following…
AltDan
  • 844
  • 4
  • 13
  • 27
3
votes
3 answers

ColdFusion 10 RESTful Web Service unable to receive gzip'd (binary) body

I've written a CF10 RESTful web service that accepts a POST from a third party. The POST comes in with successfully with proper headers showing that it's content-type is application/json and content-encoding is gzip. The body however comes in like…
scoDubblT
  • 391
  • 1
  • 2
  • 10
3
votes
0 answers

Using php.ini, .htaccess and zlib.output to compress js, css and php files

Ive been attempting to compress my website with gzip - although my server doesnt allow me do use mod_deflate, so ive found an alternative solution here:…
user1569692
  • 41
  • 1
  • 4
3
votes
1 answer

django fails to serve gzip on heroku

I have django.middleware.gzip.GZipMiddleware enabled. It serves template gzipping. django-compressor is set to COMPRESS_STORAGE = 'compressor.storage.GzipCompressorFileStorage' Locally everything is ok. static css and js assets are compressed and…
Nick Revin
  • 186
  • 6
3
votes
1 answer

PHP - Compress a txt file while maintaining the file extension

I want to compress a .txt file in PHP while maintaining the file extension. When I decompress the .gz file the extension (.txt) in the .gz file is removed. (test.txt becomes -> test) Here's a example of my PHP code to compress test.txt into a .gz…
user1480019
3
votes
1 answer

Returning gzipped content on a Sinatra app

I have a Sinatra app inside a RoR3 app. I defined a Sinatra module and added the following redirect in my RoR3 routes match '/v2', MySinatraModule, :anchor=>false My Sinatra app is serving all the services within /v2/* but they are not being…
Tony
  • 10,088
  • 20
  • 85
  • 139
3
votes
1 answer

How to convert an image to a base64 string with gzip- android

I am trying to convert and compress an image taken from a filepath on android to be converted with base64's gzip (i am using this because my desktop version, written in java, is doing the same). Here is what I have currently for compression: Bitmap…
Vnge
  • 1,295
  • 25
  • 49
3
votes
3 answers

How to create a Gzip archive in java, from strings?

I have 3 strings, each one of them representing a txt file content, not loaded from the computer, but generated by Java. String firstFileCon = "firstContent"; //File in .gz: 1.txt String secondFileCon = "secondContent"; //File in .gz: 2.txt String…
Ágota Horváth
  • 1,353
  • 3
  • 13
  • 20
3
votes
1 answer

TYPO3 gzip compression

I want to enable gzip-compression on my TYPO3 site. It's a shared hoster and I don't have access to the server configuration. This is what I've done so far: uncomment the TYPO3 .htaccess-file (the compression part) ### Begin: Compression via TYPO3…
m1crdy
  • 1,371
  • 2
  • 25
  • 58