I get a java.lang.outOfMemoryError exception, while writing a big file to the servletOutputStream.
Every response is by default wrapped using a ehcache.constructs.web.filter Object for GZIP compression. And as per the logs, the exception is thrown in the Filter object.
Is there a way to increase the available memory so, that the outOfMem...
My program is using HTTP to read gzipped files over the network.
I need my program to be able to unzip the content and parse it even when not all the gzipped file arrived yet.
Can it be done ?
If so, can it be done in C++ ? If so, how ?
...
I want to compress an entire directory which can have any number of subdirectories into a single ZIP file.
I am able to compress a single file into a zip file programmatically.
To compress an entire directory, i can think of a recursive program that walks through each subdirectory and compresses it.
But Is there any simple way to comp...
Goal: download a zipped file, unzip it, and save it in the iPhone app's Documents directory.
The following code makes use of the initWithGzippedData method that was added to NSData in the Molecule app found here:
http://www.sunsetlakesoftware.com/molecules
As adapted to my app:
NSString *sFolder = [NSHomeDirectory() stringByAppendingP...
Hi there, we're looking to compress our gargantuan JavaScript files with GZip to speed up the page loads of our site. I know this can be done through IIS, but I can't seem to find a simple step-by-step guide on how to implement it.
If someone could point me towards such a guide, I'd really appreciate it. I've never done this before, so ...
I have a large JSON data string that's 757KB. I tried GZIP'ing it, which successfully reduced file size down to 143KB. But, in it's GZIP'ed state, my JQUERY function can't make use of the compressed JSON data.
Any suggestions on how to compress JSON in an IIS/ASP environment and still be able to use the JSON data in a JQUERY function?...
Hi,
I've recently tried to optimize my site for speed and brandwith. Amongst many other techniques, I've used GZIP on my .css and .js files.
Using PuTTY I compressed the files on my site and then used:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{HTTP_USER_AGENT} !Konqueror
Rewri...
I'd like to be able to do random access into a gzipped file.
I can afford to do some preprocessing on it (say, build some kind of index), provided that the result of the preprocessing is much smaller than the file itself.
Any advice?
My thoughts were:
Hack on an existing gzip implementation and serialize its decompressor state every,...
I'm trying to find a balance between performance and degree of compression when gzipping a Java webapp response.
In looking at the Deflater class, I can set a level and a strategy. The levels are self explanatory - BEST_SPEED to BEST_COMPRESSION.
I'm not sure regarding the strategies - DEFAULT_STRATEGY, FILTERED and HUFFMAN_ONLY
I can...
Hi,
i have a 53 MB xml file that i want to gzip.
The code below gzip it
$gzFile = "my.gz";
$data = IMPLODE("", FILE($filename));
$gzdata = GZENCODE($data, 9);
//open gz -- 'w9' is highest compression
$fp = gzopen ($gzFile, 'w9');
//loop through array and write each line into the compr...
I experience strange behavior when doing HTTP requests through sockets, here the request:
POST https://example.com:443/service/XMLSelect HTTP/1.1
Content-Length: 10926
Host: example.com
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)
Authorization: Basic XXX
SOAPAction: http://example...
I'm looking for a package that will automatically detect the type of and extract an archive (zip, tar.gz, etc). In Perl, this is easy - in Python, I can't find any simple package/class to do it...
...
When i complete gzip with IIS, and i restart the server the problem came: that the "web
service extension" point to "c:\windows\system32\inetsrv\gzip.dll" has been auto deleted!
so awesome, but why? And i google it, but find nothing about it, have anyone even meet this
questiong?
Please help me, thanks a lot!
...
I want to enable GZIP compression on my gSOAP client. How can I do it?
...
I'm expiriencing some problem with one of my data source services.
As it says in HTTP response headers it's running on Apache-Coyote/1.1.
Server gives responses with Transfer-Encoding: chunked, here sample response:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Content-Encoding...
Is there some valid purpose to minifying before compressing? It seems highly unlikely that the gzipped file is smaller if it's minified first.
I ask because diagnosing production problems in minified code is substantially more difficult, and I'm wondering if people are subjecting themselves to that for no purpose.
...
Can anyone provide some insight into how i'd go about decompressing an XML response in classic ASP. We've been handed some code and asked to get it working:
Set oXMLHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
URL = HttpServer + re_domain + ".do;jsessionid=" + ue_session + "?" + data
oXMLHttp.setTimeouts 5000, 60000, 1200000, 1200...
I have attempted to find a way to create a zip archive (or GZip archive) in Objective-C, but my knowledge of the language is still lacking.
I see a way to compress an existing data structure in this question, but it does not seem to answer the question of how to make an archive.
To be explicitly clear: by archive I mean the equivalent...
I am testing out Google App Engine as a free Content Delivery Network and it feels like it's taking a long time to serve up my content. I read somewhere that GAE gzips all of your content by default, that's the primary reason I'd like to give it a shot.
Why does this gae page take a say a half a second to download, while your typical s...
Is there a way to update gzip library that JRE uses?
There is a bug in gzip library that is used by latest JRE, and it has been fixed in later version of gzip library, so I would like to make latest JRE work by updating just gzip.
Bug is in a native code from gzip library that JRE uses.
...