- PutMethod pm = new PutMethod(
- "http://localhost:8082/webdav/scanner1_queque/uploader/image_"
- + ".txt");
- String text = "this is the document content";
- pm.setRequestBody(text);
+ String baseUrl = "http://localhost:7070/org.argeo.server.jackrabbit.webapp/default/";
+
+ String fileName = "test.xml";
+
+ // PUT
+ PutMethod pm = new PutMethod(baseUrl + fileName);
+ RequestEntity requestEntity = new InputStreamRequestEntity(
+ new FileInputStream(fileName));
+ pm.setRequestEntity(requestEntity);