js-deflate icon indicating copy to clipboard operation
js-deflate copied to clipboard

how to inflate this with php?

Open phrazer opened this issue 9 years ago • 1 comments

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.

phrazer avatar Mar 25 '16 19:03 phrazer

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

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

daneren2005 avatar Mar 29 '16 18:03 daneren2005