Hello,

I am trying to do the following:
stream object data from a client to a server using the HTTP POST method.

I am able to send a full List of Serializable Object by implementing my own 
ServerResource and Application. It works great.
What I would like to do is, instead of building a big List and sending it at 
once by calling the @Post method (on the resource proxy), have the objects 
streamed to the server as they are available (but in a single POST call – I am 
trying to avoid one POST per object). I can’t seem to find a strategy for doing 
this. Restlet in Action (great books) shows how, on the server side, the 
representation can be created by using a stream (in the @Get method) but it 
doesn’t seem to help.

This thread (about uploading a file):
http://restlet-discuss.1400322.n2.nabble.com/I-want-to-upload-a-file-to-the-server-from-a-java-client-but-receive-a-415-error-code-td5744219.html
is very interesting but the client doesn’t use Restlet and I would like to make 
use of Restlet on the client side as well.

Does anybody have experience with this?

Thanks in advance.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2969910

Reply via email to