Link to home
Start Free TrialLog in
Avatar of omer d
omer d

asked on

compress in JavaScript & decompress in python

Hi,

I'm looking for a way to compress big string in javascript (client side)
and then to decompress it in python (server side)

any suggestions?

thanks!
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Hi,
perhaps not the best library (in regards of output sizes), but it has implementations in both languages:
http://pieroxy.net/blog/pages/lz-string/index.html

I used solely the JavaScript library previously and had no issues.

HTH
Rainer
Avatar of omer d
omer d

ASKER

Hi,

thanks, already looked at it, but for some reason it didn't work for me for unicode data..
maybe it related to the fact that I'm using python 2.7 and not python 3..
which python did you use?
which encode / decode method did you use?

thanks,
Omer
ASKER CERTIFIED SOLUTION
Avatar of Walter Ritzel
Walter Ritzel
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial