views:

667

answers:

2

Are there any open source DEFLATE encoder implementations for JavaScript? I need it to generate a binary format on the client-side that requires DEFLATE.

A: 

You could pass the string through encodeURIComponent() and likewise decode on the other end.

chris
There is no other end. This is a client-side question.
Eli Grey
+2  A: 

I found a DEFLATE encoder and decoder implementation at http://github.com/dankogai/js-deflate and they both work perfectly.

Eli Grey