zip more than 1 file in GzipStream
How can I zip more than 1 file in a GZipStream? I have 3 xml files and I want to zip them into one .gz file and when I decompress I should get all 3 separate files. How can I do this? ...
How can I zip more than 1 file in a GZipStream? I have 3 xml files and I want to zip them into one .gz file and when I decompress I should get all 3 separate files. How can I do this? ...
Hi I am sending some JSON data from my Flex application to the Java side for business processing. Now on top of that, I have added some code to compress(zLib) the data at Flex side and then pass it through Request and uncompress the same at java side. But at the java layer, the uncompressed data is still not in readable/usable format. ...
Hello, I am looking for some recommendations about compressing data in .NET, aside from using the GZipStream class. I am looking for fast and high compression of byte arrays to be able to send them via tcp. Thank you. ...
I plan to use java.util.zip to compress http post data when sending it from a java client to the server(java servlet in this case). is this the best approach for reducing data load? should I use gzip as the compression alg? ...
Hi, I have to make a log server in java, and one task is to send the data compressed. Now I am sending it line by line in plain text, but I must compress it. The server handle "HTTP like" request. For example, I can get a log sending "GET xxx.log". This will entablish a TCP connection to the server, the server response with a header and ...
Hi, I need to pre-compress some very large html/xml/json files (large data dumps) using either gzip or deflate. I never want to serve the files uncompressed. They are so large and repetitive that compression will probably work very very well, and while some older browsers cannot support decompression, my typical customers will not be usi...
Hi SO, I'm wondering if anyone has a clue on whether the gzip compression is as much useful on mobile devices than it is on a desktop computer. Will the phone use more battery? Or will it save some because of the bandwidth saving? Will the page page load faster or is the uncompress process slow on those limited devices? Does the compr...
I am using C# to programatically compress an xml file. Compression works fine, but when I gunzip the file from the command line, the extension has been dropped. Why would this be? The destination file coming in has the gz extension while the source file has an xml extension. Here is my compression code: using (FileStream...
i use this at top of my php page: if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); when page is save with ANSI encoding page was compressed. but when i change page encoding to utf-8 compression was faild. please help!!! i test compression on www.gidnetwork.com/tools/gzip-t...
hi, I've wrote very simple minification/compression handler that minify css and js by indicating request type (Request.RawUrl.EndsWith("css" || "js")), but i don't know an approach to indicate which response type is html and then minify that as HTML-content because in mvc isn't extension to checking. thanks in advance ;) ...
Hey, I'm building an iPhone app that's going to be sending and receiving large amounts of data to and from a server. I'm using JSon to get the data. I was wondering if it's possible to also use some sort of compression on the received data in order to try to speed up the process a little bit. If so, which kind of compression works best ...
Hi! I'd like to use gzip/deflate compression in my website on IIS7 basic shared hosting plan on GoDaddy server. I've applied many solutions that I found in web but none resolved my problem. My pages are not being compressed at all, the size keeps the same after processing them. I've tried to create a HttpHandler using DeflateStream bu...
This is a question I ran into in school settings, but it keeps bugging me so I decided to ask it here. In Huffman compression, fixed-length sequences (characters) are encoded with variable-length sequences. The code sequence length depends on the frequencies (or probabilities) of the source characters. My questions is: what is the mini...
I have reacently activated gzip compression on an IIS6 webserver. I use both static and dynamic compression (static level 10 and dyamic level 1). This was a measure to increase server response time performance. However it seems like the page loads slower after the compression was activated. All my measurements in firebug indicate this. ...
Hello dear StackOverflow! I'm looking for a useful compression library for c++ (on windows) I need preferably Deflate or Gzip, and i need it to be compatible with .NET's System.IO.Compression. Also if it will give me a decorator over a stream that would be great so i could do: std::ostringstream stringStream; CompressionStream cs(st...
I wanted to minimize or compress CSS, Javascript and maybe Html files like Google does. Because, I used Google's Page-Speed and it recommended me to compress files. It provides me the compressed versions but I would like to do this automatically.I don't want to deal with 2 files every time I want to edit something. So basically, I want t...
hi, i know we can compress response by declaring Response.Filter as GZip or Delfalte streams, but how i can perform both compression and minification together? declaring new class that inherits Stream, then first performing minify on content, then compress that by GZip or Deflate depending on User-Agent supported each? ...
At the Velocity 2010 conference, Google said that header compression can yield big gains: Hölzle noted a glaring inefficiency in the handling of web page headers, which provide information about a user’s IP address, browser and other session data. The average web page makes 44 calls to different resources, with many of those requests...
I'm looking into compressing binary data, more specifically serialized Java objects. I think I need an implementation of one of the algorithms that are listed on this Wikipedia page. I found a couple of tutorials and blog posts but no libraries (and most code I found seemed to be ported from other languages... and I don't trust the effic...
I am writing a function to dynamically generate my sitemap and sitemap index. According to the docs on sitemap.org, the file should be encoded in UTF-8. My function for writing the file is a rather simplistic one, something along the lines of: function generateFile() { $xml = create_xml(); $fp = @fopen('sitemap', 'w'); fwrite($f...