Debuging a decompression error with Zlib.js <p>I am trying to compress text server side in PHP using the <code>gzdeflate</code> function and send that data to the clients browser which will then inflate it. </p> <p>I did some research and found the imaya Zlib.js source on GitHub and attempted to use that. Unfortunately, I always get an "unsupported compression method" error when I try to inflate my data. </p> <p>I've read the documents with no luck and I have search the web for more information. </p> <p>I found these two links, but wasn't able get any positive results.<br> <a href="http://stackoverflow.com/questions/4507316/zlib-decompression-client-side">ZLIB Decompression - Client Side</a><br> <a href="http://stackoverflow.com/questions/14620769/decompress-gzip-and-zlib-string-in-javascript">Decompress gzip and zlib string in javascript</a> </p> <p><strong>Questions:</strong><br> 1) Are there any tutorials on how to use these libraries available?<br> 2) If not would anyone have any information as to why I would be getting the error message that I am? </p> <p>Thanks for any help or information that you can provide. </p>