Skip to content
Advertisement

Use zlib.js to decompress python zlib compress

On the server side I use python zlib to compress a string as follows:

JavaScript

The result of the previous code is the following

JavaScript

On the client side I use zlib.js to decompress

JavaScript

I get the following error

JavaScript

what am I doing wrong?

Advertisement

Answer

The problem was coding. in python I used base64 to encode.

JavaScript

On the client side:

JavaScript

Thank you very much for the help

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement