Hello,
I send you a sample jee project that works for me. It uses the core module and
servlet extension of Restlet 2.0.3. I hope this helps.
Here is the server code:
@Post
public FileRepresentation receive(Representation file) throws Exception {
File fichier = new File("d:\\test.txt");
file.write(new FileOutputStream(fichier));
return new FileRepresentation(fichier, file.getMediaType());
}
Best regards,
Thierry Boileau
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2685605