compression

How to store documentation of programs, libraries and languages you use

As I often work without a fast or even any internet connection, I have a webserver that serves commonly used documentation, for example: Various programming languages (php, Python, Java, ...) Various libraries (for example pthreads) Various open books RFCs IETF drafts Wikipedia (text-only, the uncompressed English dumpfile weighs 20GB!...

Problems Decompressing a GZip Archive in .Net

I grabbed the following code somewhere off the net, and I am using it to decompress Gzip files, such as http://wwwmaster.postgresql.org/download/mirrors-ftp/pgadmin3/release/v1.8.4/src/pgadmin3-1.8.4.tar.gz but when I run It, I get an exception, stating that the magic number doesnt match. public byte[] Download(string pUrl) { WebClien...

How to create an identical gzip of the same file?

I have a file, its contents are identical. It is passed into gzip and only the compressed form is stored. I'd like to be able to generate the zip again, and only update my copy should they differ. As it stands diffing tools (diff, xdelta, subversion) see the files as having changed. Premise, I'm storing a mysqldump of an important data...

CSS/JS GZip Compression with Asp.Net

I am currently on a hosted Virtual Server, I want to enable GZip compression for my Asp.Net 3.5 site, how do I go about starting? I have tried using 'packed' JS files, but they don't work, I am assuming it's because they are not handled correctly...? ...

how do I use wwScriptCompressionModule? for gzip compression with asp.net

Ok, I downloaded the WestWind Ajax Controls, and I added this to my web.config: <httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="wwScriptCompressionModule" type="Westwind.Web.Controls.wwScriptCompr...

Using data compression in communication between application and database?

Hi there, I have upcoming project where we need application to send data on compressed into database and to other application. The compression can use algorithm such as GZIP or ZLIB. Can somebody point me some help, especially for VCL component (or ActiveX) that can compress data traffic between communicating application and database? ...

Most advanced image compression today (not on browser)?

Hi, I am writing an application in Java to view images which contain a lot of text and graphics, like a screenshot of a webpage, actually its a image of a magazine article. Some parts are text, some parts are graphics. My client program is written in Java, I can use any image format, what is the best image compression format I can get m...

OnLive: How does it work?

OnLive is a cloud computing solution for gaming. It offers streaming of high-end games to any pc, regardless of its hardware. I wonder how it works: sending raw HD res image and audio data seems unlikely. Would relatively simple compression, like jpeg and mp3/ogg, do the trick? ...

Implementing run-length encoding

I've written a program to perform run length encoding. In typical scenario if the text is AAAAAABBCDEEEEGGHJ run length encoding will make it A6B2C1D1E4G2H1J1 but it was adding extra 1 for each non repeating character. Since i'm compressing BMP files with it, i went with an idea of placing a marker "$" to signify the occurance of a...

append conditional html file output with xml response

hey guys i have a restful xml service where client passes current version of html they are viewing. if the version on the server is the same as the client, i just respond with the current server version in xml. example: <Response ServerHTMLVersion="1" /> however if server html version is greater than current client version, i still spit...

How to request for gzipped pages from web servers through ruby scripts?

I have a ruby script that goes and saves web pages from various sites, how do i make sure that it checks if the server can send gzipped files and saves them if available... any help would be great! ...

huffman encoding

hiii... I am trying to implement the huffman algorithm for compression.. for that I have to write bits of variable length to a file.. is there any datatype in c++ to store bits in a file???? i tried using bitset<8> but its size is 4 bytes..so i cant use it since i am implementing compression..please help.. ...

Viewstate Compression Issues [Resolved]

I'm currently fighting with the .NET Viewstate and it is starting to wear me down. Having found that some of the pages in one of our applications is made up of around 80% viewstate I have looked into reducing this where I can. I have looked at (and am happy with) disabling viewstate for controls that do not need it (labels, buttons etc)...

I don't get Golomb / Rice coding: It does make more bits of the input, or does it?

Or, maybe, what I don't get is unary coding: In Golomb, or Rice, coding, you split a number N into two parts by dividing it by another number M and then code the integer result of that division in unary and the remainder in binary. In the Wikipedia example, they use 42 as N and 10 as M, so we end up with a quotient q of 4 (in unary: 11...

What is the best compression algorithm for small 4kb files?

I am trying to compress TCP packets each one of about 4kb in size. The packets can contain any byte (from 0 to 255). All of the benchmarks on compression algorithms that I found were based on larger files. I did not find anything that compares the compression ratio of different algorithms on small files, which is what I need. I need it t...

Save file from a byte[] in C# NET 3.5

Hello, My TCP Client receives a image within a packet.The image is compressed with zlib.The task is to decompress the image and put it on the form. I'm planning to save the compressed image in the current directory,decompress it and load the decompressed file on the form. The first problem comes with saving the file(compressed).The zl...

.NET library for handling Crusher archives?

Does anyone know of a .NET library that can handler Crusher archives? I have a Win32 DLL that I'm using via Interop, but it's a lot of work getting it going with more than the basic functions (no documentation, etc). It doesn't appear to be am implementation of any of the common compression formats. ...

Converting stream of jpg files to FLV stream

I work with a Panasonic hcm280a camera that can be controlled by my software, It generates a stream of jpeg files that are huge and I want to convert this stream to a FLV stream preferably with a good compressional ration Does FFMpeg do that? I am basically looking for an off the shelve open source software (or commercial software) that...

Compress data from Database

Quick q, could be a silly one given my (lack of) findings on Google so far. I have a Database. In this database is a Table with some Data. The Data is a large BLOB but can't be compressed (for reasons out of my control). I have an Application that talks to this Database. I would really like to be able to ensure that the Data is comp...

C++ compression (zip) library for closed-source app.

Please recommend a C++ compression (zip) library for a commercial, closed-source application. So, not a GPL license. This is for my day job... ...