Hi Jérémy, That sounds like the right approach. On the server-side, you will probably have to use the FileUpload extension for Restlet in other to save the file sent.
Let us know how it goes! Best regards, Jérôme Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : Jérémy Bogatirsky [mailto:[EMAIL PROTECTED] Envoyé : mercredi 26 novembre 2008 18:55 À : discuss@restlet.tigris.org Objet : Re: Posting a form with a file I respond to myself :-) I'm going to use a classic FormPanel in GWT to send the file. Restlet in server-side should be able to understand it, I mean it's designed to. I'll let you know ! Jérémy 2008/11/26 Jérémy Bogatirsky <[EMAIL PROTECTED]>: > Thanks Thierry for responding. > > The fact the feature is planned is a good news. > Meantime, my solution is working, so I can continue this way. > > Is this mailing list the right place to discuss about Restlet-GWT ? > Nevertheless I put my question : I would like to translate my client > side of the previous problem (2 post calls to send a form and a file) > in Restlet-GWT. I managed to send the form with the (key, value) > pairs, but I have no idea on how to send the file (JsonRepresentation > ?). Does anyone have ane idea ?! > > I could have open a new thread to discuss this point but it's related > to the previous one so... > > Regards, > Jérémy > > > 2008/11/26 Thierry Boileau <[EMAIL PROTECTED]>: >> Hello Jérémy, >> >> At this time, this feature is not supported as shown by these RFE wich is >> planned to be delivered in the upcoming 1.2M1: >> http://restlet.tigris.org/issues/show_bug.cgi?id=71 >> >> Best regards, >> Thierry Boileau >> -- >> Restlet ~ Core developer ~ http://www.restlet.org >> Noelios Technologies ~ Co-founder ~ http://www.noelios.com >>> >>> Hi all (my first post), >>> >>> my question is concerning file upload within a form. I'm currenlty >>> using Restlet 1.1.1. >>> I have both client and server developed with Restlet. >>> >>> I'd like to make a post call, sending 2 (key, value) pairs and a file. >>> I success this by making 2 post calls, one for the 2 (key, value) >>> pairs, simply using a Form and its WebRepresentation, and one for the >>> file, using a FileRepresenation (with a >>> MediaType.APPLICATION_OCTECT_STREAM, as my file could be a binary one >>> or a text one -it's a certificat-). That's works. >>> >>> My question : is it possible to make only 1 post call including the 2 >>> (key, value) pairs and the file (which can be binary or plain text) ? >>> >>> Thanks in advance and sorry if my english isn't so clear :) >>> >>> Regards, >>> Jérémy >>> >> >