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