Re: Can someone plz answer my questions? I am stuck.

2008-05-05 Thread Stephan Koops
Hi Surjendu, a REST respone has exactly one response. You need to start one request for every response. best regards Stephan Surjendu schrieb: 1st Question: Can someone tell me how to send 4-5 attachments as part of response. I mean i can create a FileRepresentation using rep = new

Re: Can someone plz answer my questions? I am stuck.

2008-05-05 Thread John D. Mitchell
So, the way to return multiple items is to bundle up the various files into a single e.g., zip archive file and return that. Have fun, John On Mon, May 5, 2008 at 3:37 AM, Stephan Koops [EMAIL PROTECTED] wrote: Hi Surjendu, a REST respone has exactly one response. You need to start one

RE: Trouble extending org.restlet.util.Template (private declarations)

2008-05-05 Thread Jerome Louvel
Hi Matthias, Are you using Restlet version 1.0? If so, I suggest that you look at the 1.1 branch where we made the suggested changes! http://www.restlet.org/documentation/snapshot/api/org/restlet/util/Template. html Best regards, Jerome -Message d'origine- De : Matthias Wauer

How to bundle 2 files in a Zip using EncodeRepresentation?

2008-05-05 Thread Surjendu
Anybody has any idea how to bundle 2 files in a Zip using EncodeRepresentation? 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

Problem in writing/reading base64 encoded stream in blob(Oracle)

2008-05-05 Thread Prashant
Hi All, I am trying to write a InputStream(which is Base64 encoded using restlet api) to a blob, It goes succesfully in db. But at time of retrieving the same, it gives exact blob size what I have written in blob, but returns zero(0) when I call is.available() method on InputStream object got

RE: Trouble extending org.restlet.util.Template (private declarations)

2008-05-05 Thread Matthias Wauer
Hi Matthias, Are you using Restlet version 1.0? If so, I suggest that you look at the 1.1 branch where we made the suggested changes! http://www.restlet.org/documentation/snapshot/api/org/restlet/util/Template. html Best regards, Jerome Thanks for your response! Yes, I use v1.0. The

Re: Exception handling in FreeMarker TemplateRepresentation?

2008-05-05 Thread Matthias Wauer
Hi Matthias, IMO it is not useful, because this needs a lot of memory. If you are streaming data from a database, a file system or something else and get an error from the storage, then you also can not send status 500 because the transmission is already startet. best regards Stephan