5

I have a GWT application that created an XML structure and then posts this to a servlet. Is it possible to gzip this xml doc on the client side before sending it (I have a filter on the servlet that will decompress it)

Thanks

Clinton Bosch
  • 2,497
  • 4
  • 32
  • 46

1 Answers1

4

I could“t find a javascript implementation for gzip, but I found this stackoverflow thread with basically the same discussion about compression in javascript: JavaScript implementation of Gzip

Maybe you can use some of the suggestions and wrap them with JSNI.

Community
  • 1
  • 1
Daniel Kurka
  • 7,973
  • 2
  • 24
  • 43