Hi Surjendu,
Thanks Surjendu for reporting this bug. I've entered a new issue. =>
http://restlet.tigris.org/issues/show_bug.cgi?id=493
You can encode using the GZIP encoding which seems to work well.
Representation zippedRep = new EncodeRepresentation(Encoding.GZIP,rep);
best regards,
Thierry Boileau
I am receiving the following exception when the entity is
being set in the response.
java.util.zip.ZipException: no current ZIP entry
My code:
File file = new File("c:\\temp.zip");
rep = new FileRepresentation(file,MediaType.APPLICATION_ZIP);
Representation zippedRep = new EncodeRepresentation(Encoding.ZIP,rep);
getResponse().setEntity(zippedRep);