Hitesh Khamesra wrote:
var inStream = Components.classes["@mozilla.org/scriptableinputstream;1"] .createInstance(Components.interfaces.nsIScriptableInputStream); inStream.init(inputStream); inStream.read(count);
FWIW that will not read non-ISO-8859-1 data correctly.
Problem: If server send data in gzip or other format then how can I covert them into plain text??
I assume you are not using nsIChannel? (because if you do, that will happen automatically)
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.
smime.p7s
Description: S/MIME Cryptographic Signature