문제

I am using restlet and returning xml response as StringRepresentation. One of my service need to return a large amount of data that makes the response size close to 5 MB.

Is there any way to zip this response?

도움이 되었습니까?

해결책

Wrapping it in an EncodeRepresentationshould work psudocode:

return new EncodeRepresentation(Encoding.ZIP, StringRepresentation);

Do double check that I have selected the correct encoding for you there are a few options.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top