Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to inflate this with php? #14

Open
phrazer opened this issue Mar 25, 2016 · 1 comment
Open

how to inflate this with php? #14

phrazer opened this issue Mar 25, 2016 · 1 comment

Comments

@phrazer
Copy link

phrazer commented Mar 25, 2016

have you any idea how to decompress using php? is this standard protocol DEFLATE? i tried with http://php.net/manual/en/function.gzinflate.php but it doesnt work.

@daneren2005
Copy link

JS: btoa(RawDeflate.deflate(encodeURIComponent(chunk)))
PHP: urldecode(gzinflate(base64_decode($chunk)))

It still returns errors on some specific cases but it mostly works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants