Skip to main content

Questions tagged [deflate]

deflate is a lossless data compression format, and also refers to implementations that compress to the deflate format. The deflate format was created by Phil Katz of PKWare for the PKZip (.zip) archive format. Public domain software provides deflate and inflate functionality in the gzip utility and the zlib library.

218 votes
9 answers
141k views

Why use deflate instead of gzip for text files served by Apache?

What advantages do either method offer for html, css and javascript files served by a LAMP server. Are there better alternatives? The server provides information to a map application using Json, so a ...
Ken's user avatar
  • 78.3k
56 votes
6 answers
101k views

Easy HTTP requests with gzip/deflate compression

I'm trying to figure out how the best way to easily send HTTP/HTTPS requests and to handle gzip/deflate compressed responses along with cookies. The best I found was https://github.com/mikeal/request ...
wridgers's user avatar
  • 717
92 votes
22 answers
81k views

How to DEFLATE with a command line tool to extract a git object?

I'm looking for a command line wrapper for the DEFLATE algorithm. I have a file (git blob) that is compressed using DEFLATE, and I want to uncompress it. The gzip command does not seem to have an ...
Felix Geisendörfer's user avatar
91 votes
4 answers
39k views

Deflate compression browser compatibility and advantages over GZIP

UPDATE Feb 10 2012: zOompf has completed some very thorough research on this very topic here. It trumps any findings below. UPDATE Sept 11 2010: A testing platform has been created for this here ...
50 votes
4 answers
23k views

Does .NET's HttpWebResponse uncompress automatically GZiped and Deflated responses?

I am trying to do a request that accepts a compressed response var request = (HttpWebRequest)HttpWebRequest.Create(requestUri); request.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate"); ...
Jader Dias's user avatar
  • 89.9k
30 votes
1 answer
11k views

How to find a good/optimal dictionary for zlib 'setDictionary' when processing a given set of data?

I have a (huge) set of similar data files. The set is constantly growing. The size of a single file is about 10K. Each file must be compressed on its own. The compression is done with the zlib library,...
Miro's user avatar
  • 301
8 votes
4 answers
17k views

Compress/Decompress NSString in objective-c (iphone) using GZIP or deflate

I have a web-service running on Windows Azure which returns JSON that I consume in my iPhone app. Unfortunately, Windows Azure doesn't seem to support the compression of dynamic responses yet (long ...
Steven Elliott's user avatar
22 votes
1 answer
18k views

Is it possible to force jQuery to make AJAX calls for URLs with gzip/deflate enabled?

I have a web service that is willing to output gzip/deflated data. I've verified that the service will respond with raw JSON or with gzip'd JSON using wget and curl. I want to consume this web ...
Lee's user avatar
  • 916
27 votes
2 answers
34k views

JavaScript DEFLATE Implementation [closed]

Are there any open source DEFLATE encoder implementations for JavaScript? I need it to generate a binary format on the client-side that requires DEFLATE.
Eli Grey's user avatar
  • 35.6k
69 votes
6 answers
24k views

Why do real-world servers prefer gzip over deflate encoding?

We already know deflate encoding is a winner over gzip with respect to speed of encoding, decoding and compression size. So why do no large sites (that I can find) send it (when I use a browser that ...
Steve Clay's user avatar
  • 8,761
49 votes
1 answer
7k views

Why are major web sites using gzip?

I just searched about gzip and Deflate, and found out that Deflate is better. GZip or Deflate for HTTP compression Why use deflate instead of gzip for text files served by Apache? Is there any ...
Sanghyun Lee's user avatar
  • 22.5k
13 votes
2 answers
55k views

Zlib compression Using Deflate and Inflate classes in Java

I want trying to use the Deflate and Inflate classes in java.util.zip for zlib compression. I am able to compress the code using Deflate, but while decompressing, I am having this error - Exception ...
Ashish Agarwal's user avatar
6 votes
1 answer
20k views

php - Get compressed contents using cURL

I need to get content of various web pages. Some of them are compressed using different methods (gzip, deflate, etc). I've searched on the Internet and found the solution for gzipped content: $ch = ...
Bé Khỏe Bé Pro's user avatar
1 vote
1 answer
79 views

Difference between two zlib data ( same value )

I am working with zlib data from 3 days and I cannot get out of this problem: The original zlib compressed data hex is as follows: ...
Lyar's user avatar
  • 27
151 votes
15 answers
187k views

How does one make a Zip bomb?

This question about zip bombs naturally led me to the Wikipedia page on the topic. The article mentions an example of a 45.1 kb zip file that decompresses to 1.3 exabytes. What are the principles/...
pufferfish's user avatar
  • 17.2k

15 30 50 per page
1
2 3 4 5
7