> You can use the gzip stream converter. Ask the nsIStreamConverterService
> (@mozilla.org/streamConverters;1) for a conversion from x-gzip (or gzip,
> or compress) to uncompressed
 
I used following piece of code in onDataAvailable function

onDataAvailable: function(request, context, inputStream, offset, count){

var streamConv = Components.classes["@mozilla.org/streamconv;1?from=gzip&to=uncompressed"].createInstance(Components.interfaces.nsIStreamConverter);
var ret = streamConv.convert(inputStream, "gzip", "uncompressed", null);
but i am getting following error
[Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIStreamConverter.convert]"  nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)"  location: "JS frame :: ..
 
How can I figure out this error??
 
thanks,
Hitesh.

Reply via email to