compression

What part does hardware compression play in network apps

For a long time I've assumed that when I send data down the wire, it'll be compressed for me, as NICs have supported hardware compression for decades. Recent testing however has shown this to be a naive view, so have started implementing software compression in my apps and services. My question therefor is, to what extent can we as sof...

compress/archive folder using php script

Is there a way to compress/archive a folder in the server using php script to .zip or .rar or to any other compressed format, so that on request we could archive the folder and then give the download link Thanks in advance ...

Streams and Compression

How does something like System.IO.Compression.GZipStream have anychance of working? Doesn't something like GZip need to look at the contents of an entire unzipped file before it can start writing the zip file? Does GZipStream buffer everything before it writes anything? If so, what is the point of implementing the stream? ...

ASP.NET MVC - compression + caching

I've seen a number of options for adding GZIP/DEFLATE compression to ASP.Net MVC output, but they all seem to apply the compression on-the-fly.. thus do not take advange of caching the compressed content. Any solutions for enabling caching of the compressed page output? Preferably in the code, so that the MVC code can check if the page...

How should I store and compress a Moose object using Perl?

I have created a package using Moose and I would like to nstore some large instances. The resulting binary files are very large (500+MB) so I would like to compress them. What is the best way for doing that? Should I open a filehandle with bzip etc. then store using fd_nstore? ...

.Net file compression libraries

I'm looking for a package to use in my project to compress some xml files. I use WinRAR usually to compress files, and I think you can do this using the 7zip project and this can be included in a .Net project. This is a similar question here: http://stackoverflow.com/questions/153678/7-zip-7za-dll-net-wrapper and the CodeProject exampl...

Data compression to reduce network bandwidth usage

Hello, suppose that I've a huge amount of data (>KB/MB) to transfer from an ajax request (JS) to a webpage (PHP), is it usefull to deflate data (by JS scripting) before send it to server and inflate it in my Webpage or the Apache module (Content-Encoding:gzip) do it by itself? Thanks. ...

How do I compress a folder with the GZip module inside of Python?

The title says it all... I'm creating Python software that compresses files/folders... How would I create a section of the code that asks for the user input of the folder location and then compresses it. I currently have the code for a single file but not a folder full of files. Please explain in detail how to do this. Thanks! ...

How to store many small integers into a byte array?

Im making a online game, and as in many online games i will need loads of data being transfered via internet, so i need to be able to compress data efficiently. For instance i want to send from my client to the server my character coordinates. Edit: yeah bad example, let me change the values... X coordinate(say -32 to 32).(65 diferent...

ASP.NET/IIS6 - Disable chunked encoding when using dynamically compressed content?

I'm running ASP.NET on an IIS6 server. Right now the server is set up to compress dynamically generated content, mainly to reduce the page size of ASPX files that are being retrieved. Once of the ASPX files has the following bit of code, used to fetch a file from the database and send it to the user: Response.Clear(); Response.Buffer ...

Reading and Writing Bits to Text Files in Java

I'm trying to implement some compression algorithms, and I need to deal with bits in Java. What I need to do is that when I write the value 1 then the value 2, those numbers are stored in the file as bits, so the file size will be 1 byte instead of 2, as 1 is stored in 1 bit and 2 is stored in 2 bits. Is it possible? Thanks very much ...

7z extension for php?

I can't find one and I don't know if any of PHP Compression and Archive Extensions will work. Do you think I could use a compression stream to read data from a 7z file? UPDATE 7z forums have a lot of requests for a php extension ...

J2ME Byte Array ZIP Compression

Is there some library or built-in funcionality in J2ME to compress a byte array trough ZIP? I'd like to do something like this: byte[] data; byte[] compressed = ZIPLibrary.compress(data); Thanks. ...

Node.js: Gzip compression?

Am I wrong in finding that Node.js does no gzip compression and there are no modules out there to perform gzip compression? How can a anyone use a web server that has no compression? What am I missing here? Should I try togaspport the algorithm to JavaScript for server-side use? ...

Google PageSpeed & ImageMagick JPG compression

Given a user uploaded image, I need to create various thumbnails of it for display on a website. I'm using ImageMagick and trying to make Google PageSpeed happy. Unfortunately, no matter what quality value I specify in the convert command, PageSpeed is still able to suggest compressing the image even further. Note that http://www.imagem...

How do I extract all the data from a bzip2 archive with C?

I have a concatenated file made up of some number of bzip2 archives. I also know the sizes of the individual bzip2 chunks in that file. I would like to decompress a bzip2 stream from an individual bzip2 data chunk, and write the output to standard output. First I use fseek to move the file cursor to the desired archive byte, and then ...

Fast compression in Java?

Is there a very fast compression library for Java? The standard gzip library is slower than I would like. I'm looking for something similar to http://www.oberhumer.com/opensource/lzo/ that's native Java code that provides fast compression and decompression. Thanks! A few other fast compression libraries for future reference: QuickLZ...

HTTP Compression is not working

I have IIS 7 installed on windows 2008 server. I have set following parameters : cscript c:\inetpub\adminscripts\adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcCompressionDll %windir%\system32\inetsrv\gzip.dll cscript c:\inetpub\adminscripts\adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcCreateFlags 1 cscript c:\inetpub\adminscripts...

How large does a file need to be to benefit from gzip compression?

Since gzip takes time to pack on the server side, and more time to unpack on the client side, how large does a file need to be in order to benefit from it? Are there any real numbers out there that demonstrate the efficacy of gzip at common download speeds? ...

Cryptography / Compression in Silverlight

I'm porting my application from WPF to Silverlight. The biggest problem is that my application uses RSA encryption and Deflate compression, and both classes are not available in Silverlight. I know that you can view the sourcecode of any .NET class using reflection, so would it be possible to just 'decompile' the RSACryptoService class,...