compression

How do I transparently compress/decompress a file as a program writes to/reads from it?

I have a program that reads and writes very large text files. However, because of the format of these files (they are ASCII representations of what should have been binary data), these files are actually very easily compressed. For example, some of these files are over 10GB in size, but gzip achieves 95% compression. I can't modify th...

How do you use a DeflateStream on part of a file?

I'm working on a solution to my other question which is reading the data in the 'zTXt' chunks of a PNG. I am as far as locating the chunks in the file, and reading the zTXt's keyword. I'm having trouble reading the compressed portion of zTXt. I've never worked with the DeflateStream object before, and am having some trouble with it. ...

What is a good lossless video codec?

I often have to write up specs for video conversion for some of the video production houses that my company's clients work with. Unfortunately, I am a programmer first and "video-guy" on the side, so I don't know too much about all the different codecs. I am looking for a good lossless codec that is both cross-platform (Win and Mac) and...

Does anyone know of a program/method to compress just certain parts of a PNG image w/o slicing it?

Please help! Thanks in advance. Update: Sorry for the delayed response, but if it is helpful to provide more context here, since I'm not sure what alternative question I should be asking. I have an image for a website home page that is 300px x 300px. That image has several distinct regions, including two that have graphical copy on t...

Backup utility design suggestions

I'm currently learning Qt and have decided to write a little application to backup important documents each month to DVD. My current design makes use of the 7zip library along with cdrtools (mkisofs and cdrecord) to compress the directories into a spanning zip archive comprising of zip files each the size of a DVD and then use mkisofs to...

Will HTTP Compression (GZip or deflate) on a low traffic site actually be beneficial?

I have a web application where the client will be running off a local server (i.e. - requests will not be going out over the net). The site will be quite low traffic and so I am trying to figure out if the actual de-compression is expensive in this type of a system. Performance is an issue so I will have caching set up, but I was consi...

How can I get gzip compression in IIS7 working?

I have installed Static and dynamic compression for IIS7, as well as setting the two web.config values at my application ( Virtual Folder ) level. As I understand it, I don't need to enable compression at the server, or site level anymore, and I can manage it on a per folder basis using my web.config file. I have two settinsg in my .co...

Compress and send image over network in java?

Hi. I have a server which waits for a connection from a client then sends an image to that client using the Socket class. Several clients will be connecting over a short time, so I would like to compress the image before sending it. The images are 1000 by 1000 pixel BufferedImages, and my current way of sending them is to iterate over...

Compress multiple files individually with Gzip

Dear all, I have several directories that look like this: dir1/ |_foo.txt |_bar.txt dir2/ |_qux.txt |_bar.txt For each of this directory I want to compress the files inside it into *.gz format then delete the uncompressed ones. So finally we hope to get something like this: dir1/ |_foo.gz |_bar.gz dir2/ |_qux.gz ...

Issues with .net gzip decompression stream

What could be wrong with those set of methods? byte[] bytes; using (var memory_stream = new MemoryStream()) using (var gzip_stream = new GZipStream(memory_stream, CompressionMode.Compress)) { var buffer = Encoding.Default.GetBytes("Hello nurse!"); gzip_stream.Write(buffer, 0, buff...

Reverse Engineering: How do I identify an unknown compression method?

Hi, I'm with a group of modders attempting to reverse engineer and mod a Blu-Ray player. We're stuck because the firmware code seems to be compressed, and the decompression code is nowhere to be found. Presumably, the decompression is handled by hardware. My question is, with only the the compressed output, how do we determine what typ...

Do we have any Minifier Add-in for visual studio 2005/2008 ?

Do we have any Minifier Add-in for visual studio 2005..? that minifies various files inside visual studio. ...

Delphi EXE compressor?

At one point I had a nice little compression utility that smashed my Delphi compiled EXE's to a smaller download size, but now I can't find it. Any recommendations? Also, are there any downsides to using these kinds of utilities? (I mainly use them to shorten download times for rural / dial-up users). Related question: Are there an...

Compression and Decompression in java doesnot work fine for different programming language

If i compress and decompress data using java then it works fine My if friend uses C#.NET to compress data while i am using java SO inthis case I can not decompress the same data. I am using inflatter and deflater in java. Thanks Bapi ...

GZIP compression did not work good for a data of 64K

Hi I have created compressin and decompression technique using gZipinputstream in both c#.NET and java If I compress upto 15000 bytes in c#.NET then i can decompress it in java but if i compress 64000 bytes in c#.NET then i am not able to decompress it in java. But I can decompress it using C#.NET. So how to come out of this problem Tha...

Gzip versus minify

I had a somewhat lively discussion the other day about minifying Javascript and CSS versus someone who prefers using Gzip. I'll call this person X. X said that Gzip allready minifies the code, since it zips your files. I disagree. Zip is a lossless method of shrinking filesize. Lossless means the original must be restored perfectly, m...

Get image from a video frame in iPhone

Is it possible using the iPhone SDK to grab a frame from a video in iPhone and save it or use it in any way in the application? Does the SDK give any control over the video other than play/stop or maybe access to the binary data of the video? Also is it possible to know the time at which the user stopped watching the video (i know in SD...

How to compress a directory with libbz2 in C++

I need to create a tarball of a directory and then compress it with bz2 in C++. Is there any decent tutorial on using libtar and libbz2? ...

Disable GZIP compression for IE6 clients.

We need to conditionally disable GZIP compression if user's browser is IE6 (it hangs browser for 5min) in few pages of larger site. Server is IIS7 and has compression for static content turned on - want that compression left working if user agent is not Mozilla/4.0. ASPX code sample anyone? Alternatively, code to conditionally redirect ...

Is it worth it to enable dynamic compression in IIS7 ?

I am trying to find all possible ways I could improve my website performance. I was considering enabling dynamic compression at the server level but was concerned by performance hits (no caching of compressed pages - corruption of files - overhead on the server). Should I just give up on the dynamic compression with IIS 7? are there modu...