gzip

Apache Deflate - does it wait for the whole page to load first?

I set up a server to use the Apache2 deflate recently. Some people started reporting long waiting times on certain pages. The page in particular is one that takes a long time to load, as it's gathering data from external sources. Usually it loads progressively, which is good for user feedback. The whole page can take 10-15 seconds to f...

uzing libgz to inflate a gz input

Hi all, I'm currently trying to use the zlib to inflate a source of gzipped data. It seems that the inflate API in zlib cannot inflate a gzipped data ( The example http://www.zlib.net/zpipe.c fails to read a gzipped file: "zpipe: invalid or incomplete deflate data" ). I noticed that there is a gzopen function in this API, but , as far a...

zip more than 1 file in GzipStream

How can I zip more than 1 file in a GZipStream? I have 3 xml files and I want to zip them into one .gz file and when I decompress I should get all 3 separate files. How can I do this? ...

java.util.zip.ZipException: oversubscribed dynamic bit lengths tree

I am compressing a string using gzip, then uncompress the result, however I got the following exception, why? output: Exception in thread "main" java.util.zip.ZipException: oversubscribed dynamic bit lengths tree at java.util.zip.InflaterInputStream.read(Unknown Source) at java.util.zip.GZIPInputStream.read(Unknown Source) at Test.m...

How to pre-compress very large html files

Hi, I need to pre-compress some very large html/xml/json files (large data dumps) using either gzip or deflate. I never want to serve the files uncompressed. They are so large and repetitive that compression will probably work very very well, and while some older browsers cannot support decompression, my typical customers will not be usi...

not in gzip format error

while installing any Gem or doing any listing of gem gzip related error comes as shown below:- C:\Documents and Settings\gangunra>gem install rhosync -v 2.0.0.beta7 --pre ERROR: While executing gem ... (Zlib::GzipFile::Error) not in gzip format C:\Documents and Settings\gangunra>gem list rails -r * REMOTE GEMS * ERROR: While ex...

How enable GZIP compression for Spring HttpInvoker requests using Tomcat?

Hi, Wondering if anyone has set up GZIP compression for Spring HttpInvoker requests using Tomcat, and what steps are necessary? Also, any advice on whether it's actually worth it; is there much to be gained from trying to compress what are basically serialized Java objects, or do they not really reduce in size much? Thanks, Brian ...

Is gzip compression useful for mobile devices?

Hi SO, I'm wondering if anyone has a clue on whether the gzip compression is as much useful on mobile devices than it is on a desktop computer. Will the phone use more battery? Or will it save some because of the bandwidth saving? Will the page page load faster or is the uncompress process slow on those limited devices? Does the compr...

bash script code help to make zip/tar of several folders .

I am very new in bash and never coded in before but this task is stuck so need to get rid of it . I need to make bash script to make a single compressed file with several dirs. Like - /home/code/bots/ /var/config/ . . . /var/system/ and all will be compressed to single file /var/file/bkup.[zip][tar.gz] Thanks in advance ...

Why is my programmatic compression dropping the file extension?

I am using C# to programatically compress an xml file. Compression works fine, but when I gunzip the file from the command line, the extension has been dropped. Why would this be? The destination file coming in has the gz extension while the source file has an xml extension. Here is my compression code: using (FileStream...

Problem with gzip compressing utf-8 encoded php page. HELP!

i use this at top of my php page: if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); when page is save with ANSI encoding page was compressed. but when i change page encoding to utf-8 compression was faild. please help!!! i test compression on www.gidnetwork.com/tools/gzip-t...

IIS7 Compression on GoDaddy

Hi! I'd like to use gzip/deflate compression in my website on IIS7 basic shared hosting plan on GoDaddy server. I've applied many solutions that I found in web but none resolved my problem. My pages are not being compressed at all, the size keeps the same after processing them. I've tried to create a HttpHandler using DeflateStream bu...

Writing a file with UTF8 encoding in PHP

I am writing a function to dynamically generate my sitemap and sitemap index. According to the docs on sitemap.org, the file should be encoded in UTF-8. My function for writing the file is a rather simplistic one, something along the lines of: function generateFile() { $xml = create_xml(); $fp = @fopen('sitemap', 'w'); fwrite($f...

zlib.error: Error -3 while decompressing: incorrect header check

Hi, I have a gzip file and I am trying to read it via python as below: import zlib do = zlib.decompressobj(16+zlib.MAX_WBITS) fh = open('abc.gz', 'rb') cdata = fh.read() fh.close() data = do.decompress(cdata) it throws : zlib.error: Error -3 while decompressing: incorrect header check How can I overcome it. ...

How to disable the DEFLATE module for a specific directory?

I am trying to figure out how to disable the DEFLATE module (gzipping) for a specific directory on my server. This is what I have in /etc/httpd/conf/httpd.conf AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-...

Simple API for random access into a compressed data file

Please recommend a technology suitable for the following task. I have a rather big (500MB) data chunk, which is basically a matrix of numbers. The data entropy is low (it should be well-compressible) and the storage is expensive where it sits. What I am looking for, is to compress it with a good compression algorithm (Like, say, GZip)...

How to use gzip

Hy can anyone that is using gzip for html js php and css how to implement this on a server. What I want to know is : What do I have do write in .htacces 2.What and from where to download most important does it make a diferance and does it pay off. Thx for your help and time ...

compression decompression iPhone

Hi Friends, I am stuck with this problem. We are doing compression in .net and decompression in iPhone, Using GZip compression on both sides but the answer differs. Anyone has clue then please reply. Thanks in Advance. ...

mod_deflate or Gzip which should be used

Hi Mod_deflate or GZIP which should be used . i read Gzip on better explained but want to know extra about deflate Thanks ...

How can I compare two zip format(.tar,.gz,.Z) files in Unix

I have two gz files. I want to compare those files without extracting. for example: first file is number.txt.gz - inside that file: 1111,589,3698, 2222,598,4589, 3333,478,2695, 4444,258,3694, second file - xxx.txt.gz: 1111,589,3698, 2222,598,4589, I want to compare any column between those files. If column1 in first file is...