Surjendu,
you should use "put(representation)" (for Restlet 1.0.x) or
"storeRepresentation(Representation)" (for Restlet 1.1.x) where the
parameter is the representation of the sent entity.
You can also get the entity from the request object :
getRequest().getEntity().
You can also take benefit from reading the javadocs :
http://www.restlet.org/documentation/1.1/.
best regards,
Thierry Boileau
Sending a file:
Client Code:
FileRepresentation rep = new FileRepresentation("C:\\input.txt",
MediaType.MULTIPART_FORM_DATA, 0);
Request request = new Request(Method.PUT,rep);
Response resp = new Client(Protocol.HTTP).handle(request);
My question is how to read the file in handlePut() in my resource class.
Server Code:
public void handlePut()
{
//How to get the File here???
}
Someone please help???