Hello Surjendu,

could you try with these snippets of code ?
http://java.sun.com/developer/technicalArticles/Programming/compression/#code2

best regards,
Thierry Boileau

Hi Surjendu,

For now, you should use JDK's API to manipulate your Zip file (see
"java.util.zip" package).

We plan to add support for composite representations as proposed Marc
Portier. It would allow us to dynamically build Multipart representations or
archive/Zip representations from multiple part representations...

"Support multipart forms"
http://restlet.tigris.org/issues/show_bug.cgi?id=71

Best regards,
Jerome
-----Message d'origine-----
De : news [mailto:[EMAIL PROTECTED] De la part de Surjendu
Envoyé : lundi 5 mai 2008 19:12
À : discuss@restlet.tigris.org
Objet : Re: Can someone plz answer my questions? I am stuck.

Thanks John..But can you please send a code snippet.

I mean I can create a File by
FileRepresentation rep = new FileRepresentation(
        "d:\\temp\\test.txt", MediaType.TEXT_ALL, 0);

and then put this in the zip

EncodeRepresentation(Encoding.GZIP, rep);

But I dint see any constructor which takes a list of Representations.
Something
like EncodeRepresentation(Encoding encoding, List<wrappedRepresentation>)


In that case how will i bundle all the files in one zip.





Reply via email to