I am facing a problem, where I receive a compressed (ZLIB) Input stream from a web service.

I have read this stream on the client side.

Please advise how can I

1. Receive and read this inputstream using JavaScript/AJAX/JQUERY
2. Decompress the stream

Although I can do this using JAVA and .NET but I have to do this at the client side.

Please help.