Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gzipping data in GWT

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

like image 685
Clinton Bosch Avatar asked Oct 11 '22 21:10

Clinton Bosch


1 Answers

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.

like image 72
Daniel Kurka Avatar answered Oct 14 '22 01:10

Daniel Kurka