java - Any way to zip the RestLet StringRepresentation response -


i using restlet , returning xml response stringrepresentation. 1 of service need return large amount of data makes response size close 5 mb.

is there way zip response?

wrapping in encoderepresentationshould work psudocode:

return new encoderepresentation(encoding.zip, stringrepresentation); 

do double check have selected correct encoding there few options.


Comments

Popular posts from this blog

c++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -