Hello Mike,
The problem is that when I try process it on the server side as a Resource the
entity.getText() returns NULL.
you can only only get or write the entity's content once. The reason is
that this representation is read from a socket which can only be read once.
However, you can store
Hi Leshek,
Thanks for your feed-back. Could you tell us about the cases you have in
mind with LGPL?
I know that LGPL 2.1 had compatibility issues with Apache Public License,
but LGPL 3.0 solved them AFAIK.
Best regards,
Jerome
_
De : news [mailto:[EMAIL PROTECTED] De la part de Lesh
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
Matth
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 Fil
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 r
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 [mailto:[E
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
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 din
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 f
>
> 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
> 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
>S
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 p
12 matches
Mail list logo