7

I'm using some pretty heavy AJAX with lots of data going from client to server. How can I compress the data (mostly plain text) before sending to the server?

And how can I uncompress the data on the server side?

Shamoon
  • 41,293
  • 91
  • 306
  • 570

3 Answers3

4

jSEND seems to do EXACTLY this. Anyone ever use it?

Broken link removed: led to spam landing page @ jsend.org

Jude Fisher
  • 11,138
  • 7
  • 48
  • 91
Shamoon
  • 41,293
  • 91
  • 306
  • 570
1

The jsolait library has a codec that supports the LZW algorithm (among others, including base64 encoding/decoding). The only thing that makes me a little hesitant is that this library is no longer being actively maintained.

EDIT

I was able to find a few more implementations of the LZW algorithm in Javascript.

Vivin Paliath
  • 94,126
  • 40
  • 223
  • 295