deflate

Recommend a ZIP assembly for Silverlight 4

I've been using the Silverlight version of #ziplib (SharpZipLib) but it seems seriously flawed because the DeflateOutputStream always produces 2 bytes (120, 156) for any input (hell of a compression algorithm ;) so I cannot use that one. What's more it seems like that latest release is almost 2 years old now. Any recommendation for a fr...

decompress deflate64

I've got a compressed string of bytes coming out of a database which I need to decompress so as to retrieve the rtf file in there. This is the requirement. I tried to use DotNetZip and it has given me a 50% success ratio. The failed 50% gave me a unsupported encryption (0x09, deflate64) error. So I think my problem is that some of the c...

need help with zlib!

I wanted to compress my pages so I put ob_start('ob_gzhandler'); at the beginning of my php header file. however as I was playing around I noticed it will give me a blank page if I start a session while the ob_gzhandler was not being used! so I did the below and it worked: how ever I'm not sure if this will always use the compression a...

Given a decompressed gzip file, is there any way to recreate the exact original gzip file?

Given a gzip file Z, if I decompress it to Z', is there any way I can recompress it to get the exact same gzip file Z back? After a cursory reading of the DEFLATE format, I am guessing no, as any given file may have multiple representations in DEFLATE stream format, and there is no way to determine which one was originally used. Can anyb...

Deflate (or similar) compression available for Silverlight 3?

Is there any deflate implementation for Silverlight 3 that is compatible with the .NET one? Or, barring that, is there any similar compression algorithm available for both .NET and Silverlight I can use? I tried this LZW example: http://paste.lisp.org/display/12198, but unfortunately it doesn't work very well. ...

Can I use boost::iostreams with zlib filter for RFC1951-compliant compression?

I'm trying to use boost::iostreams with a zlib filter like this: std::ostringstream oss; boost::iostreams::filtering_stream<boost::iostreams::output> out; out.push(boost::iostreams::zlib_compressor()); out.push(oss); out << requestXML << std::flush; to compress a lump of xml in accordance with RFC1951, however I s...

How to set mod_deflate preferred compression method to deflate

The title says it all. mod_deflate always sends gzip data when the request header Accept-Encoding is gip, deflate. How can I tell mod_deflate to prefer to send deflate (NOT zlib) instead of gzip? If this isn't possible...why would the develpers name the module mod_deflate when it can't deflate. Also, what is the best way, if any, for ...

One library for deflate, gzip, and zlib in .net

First, let's define some commonly confused terms: deflate = compression_algorithm; zlib = header + deflate + trailer; gzip = header + deflate + trailer; I'm looking for a library that will basically let me do the following: if(method == "gzip"){ Response.Filter = new CompressionLibrary.OutputStream(Response.Filter, CompressionLib...

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 service using the jQuery AJAX call. By default, the $.ajax call that jQuery provides does not add the "Accept-Encoding: gzip" HTTP request hea...

Java deflate response

Hello all I want to make a filter for tomcat to deflate all responces of certain MIME type. Any guidelines? ... String ae = request.getHeader("accept-encoding"); if (ae != null && ae.indexOf("deflate") != -1) { deflate response...????? } chain.doFilter(request, res); ...

How to "deflate" a ViewStub?

So I can inflate a ViewStub at runtime. Let's say I want to make it disappear and then maybe inflate again depending on some event occurring (for example, a toolbar that inflates and deflates according to what the user selects on screen). I can use View.setVisibility(4) EDIT View.setVisibility(View.GONE) EDIT .... is there any o...

compressing and decompressing source data gives result different than source data

Hello! In my app I need to Decompress data written by DataContractSerializer to compression Deflate Stream in another app, edit the decompressed data and Compress it again. Decompression works fine, but not for data compressed by me. The problem is that when I do this: byte[] result = Compressor.Compress(Compressor.Decompress(source...

Are gzipped files server-side cached?

Hello! When using Gzip to compress css and js files, does the compressed css or js file remain cached in the server to be resent to other visitors or does it require another compression process for each visitor or even each page view? thanks. ...

Does changing scheme from gzip to deflate fix ie6 incompatibility?

Internet explorer 6 VS1 doesn't support gzip compression correctly. It does however understand deflate. Is it sufficient to change the scheme name in applicationhost.config from gzip to deflate to fix this issue? Are there any downsides to using deflate instead of gzip? <!-- c:\windows\system32\inetsrv\config\applicationhost.config --> ...