Hi Asim,

Integrated multipart support is only planned for Restlet 1.2. 

"Support multipart forms"
http://restlet.tigris.org/issues/show_bug.cgi?id=71

For now you can leverage the FileUpload extension based on Apache FileUpload 
library:
http://www.restlet.org/documentation/snapshot/ext/org/restlet/ext/fileupload/package-summary.html

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 : news [mailto:[EMAIL PROTECTED] De la part de Asim
Envoyé : mardi 19 août 2008 09:20
À : [email protected]
Objet : Multipart Restlet Request

Hi all,

In the development of a feature, there was a requirement to pass multipart 
restlet request, consisting of two things –

XML data providing the details of event
Upload Audio file which has to be attached with the event 

But when I am trying to do this simultaneously i.e. pass XML data and upload 
file in a single request, I am getting following error – 

Exception java.lang.IllegalStateException: The Web form cannot be parsed as no 
fresh content is available. If this entity has been already read once, caching 
of the entity is required
 
This signifies that both XML data and upload file can’t be processed in a 
single request. When tested independently, both are working fine. What can be 
a solution to this problem?

Thanks in advance 

Regards,
Asim


Reply via email to