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
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
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
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
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
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
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
7 matches
Mail list logo