compression

Is there a "Fast Infoset" XML compression library for Delphi?

I would like to support Fast Infoset in some enterprise applications to reduce network traffic for XML and SOAP exchanges. As documented on Wikipedia, there are Fast Infoset implementations for C# and Java. According to OSS Fast Infoset Tools, implementations are already available on several platforms including Microsoft .NET and .NET...

Zlib for Mono/.Net without a known Checksum

I need to implement a special ZLib implementation which should run under .Net and Mono. The data /string messages are received via a socket and thus the checksum is missing. This is about raw string data, not about files. unsigned char zlib_header[]={ // custom additional Zlib Id 'Z', // Our own ID // The normal GZIP heade...

SQL Server 2008 Page/Row Compression Thoughts

Have other people here played with SQL Server 2008 Compression at either the page or the row level on their datasets much? What have your impressions been on performance both speed and disk-space wise? Has anyone ever seen compression demonstrably hurt performance? On some of our huge fact tables we've been playing around and noticing...

Urgent Help with decompression in c#

Hi I have some delphi code that did this needs to be re coded in c#: procedure TDocSearchX.Decompress; var BlobStream:TBlobStream; DecompressionStream:TDecompressionStream; FileStream:TFileStream; Buffer:array[0..2047] of byte; count:integer; begin BlobStream:=TBlobStream.Create(DocQueryDATA,bmRead); DecompressionStream:=TDecom...

GZIPInputStream decompression did not work fine for the compressed data with length more than 532 bytes

I have created compression and decompression using gZipInputStream in java It works fine for small amount of data but if the data length after compression becomes greater thatn 532 then my decompression does not work fine. Thanks Bapi ...

Compression libraries for Ruby?

Are there any open-source compression/decomp libraries available for Ruby? Has anyone implemented LZW? Or, are there any open-source libraries that use a compression component which could conceivably be extracted for independent use? EDIT -- thanks for the answers! I should have mentioned that what I have to compress are long strings t...

.Net client vs Java Server with raw data

I am writting a .Net/C# client to a Java Server on Solaris. The Java server is writting Raw byte data in a Gziped format which I need to extract, but I am having trouble to read the data in the right buffer sizes. I read the message not-deterministicly incomplete or complete and can not read the second message in any case. I am reading ...

How to check if IIS Compression with HTTPS/SSL is working?

I've setup a website for IIS compression, but it doesn't appear to be working for HTTPS, just HTTP. Is there something that needs to be configured to get this to work, or does this not work in IIS? What options are there? UPDATE: According to this the compression is occurring before the encryption. If compression is occurring for SSL re...

Removing extra whitespace from generated HTML in MVC

I have an MVC application view that is generating quite a large HTML table of values (>20MB). I am compressing the view in the controller using a compression filter internal class CompressFilter : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext filterContext) { HttpRequestBase ...

1 or more bytes truncation with GZip round trip [solved]

Hi I dont get it. I have used a similar/same approach for many years now, and never experienced this. For some reason, that I did not pick up until today, a GZip round trip results in 1 or more bytes being truncated or data being garbled. I wrote a simple test to verify that something else is not affecting it. This always fails with ...

Duplicate text-finding

My main problem is trying to find a suitable solution to automatically turning this, for example: d+c+d+f+d+c+d+f+d+c+d+f+d+c+d+f+ into this: [d+c+d+f+]4 i.e. Finding duplicates next to each other, then making a shorter "loop" out of these duplicates. So far I have found no suitable solution to this, and I look forward to a respons...

How to configure (GoAhead) embedded web server for compression?

I have html files that are pre-compressed on the server using zlib and it appears zlib adds the appropriate headers to the compressed html files: static int const gz_magic[2] = {0x1f, 0x8b}; /* gzip magic header */ (from gzio.c) The browser (FF) supports Accept-Encoding: gzip,deflate However, it doesn't display the html. I am using...

Why does gzipped html file display without JS and CSS?

I have an html file saved in gzip format. The browser displays the html file but without the javascript and CSS. Non-zipped html files in the same directory do display correctly. In addition, I saved the source from the compressed html file and it reopened correctly, with JS and CSS applied. What is different about displaying the zipp...

JavaScript build options/tools

These days I find myself shifting out more and more work to the client side and hence my JS files tend to get bigger and bigger. I have come to the point where most HTML pages have half a dozen or more JS imports in the header and I realised that this is hurting loading times. I have recently discovered this script which lets you downlo...

Can zlib-compressed string contain whitespace?

Can zlib-compressed string contain whitespace? By whitespace I mean ' ', \n, \t. ...

Compression algorithms for numbers only

Hi, I am to compress location data (latitude,longitude, date,time). All the numbers are in fixed format. 2 of them (latitude,longitude) are with decimal format. Other 2 are integers. Now these numbers are in fixed format string. What are the algorithms for compressing numbers in fixed format? Is number only compressions (if there any...

ScriptResourceHandler does JS compression for IE only. Really?

Description of ScriptResourceHandler states: By default, the ScriptResourceHandler class compresses and caches embedded script files for Internet Explorer 7. You can turn compression and caching off through the EnableCompression and EnableCaching properties of the ScriptingScriptResourceHandlerSection class. So this ...

ASP.NET - script and css compression

Is there any native compression (for javascript/css files) available in ASP.NET? ...

Ways to compress/minify javascript files

Duplicate: Best javascript compressor Which javascript minification library produces better results? What is the best method to reduce the size of my Javascript and CSS files? So far I have seen these tools to compress javascript files Packer List item Yahoo Compressor On Packer page there is a section "Packer versu...

Benefit of compressing javascript/css files when using IIS httpCompression.

It looks like IIS httpCompression compresses your files. If this compression is in place, what is the reason to compress files using compression tools like: Packer, JSMin or Yahoo Compressor? ...