File upload to Nuxeo server from Android mobile
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2012 03:45 AM
// Get The Root Document root = (Document) session.newRequest("Document.Fetch").set( "value", "/").execute(); // Create a File Document session.newRequest("Document.Create").setInput(root).set("type", "File").set( "name", "myfile").set("properties", "dc:title=My File").execute();
// Upload The file
File file = getTheFileToUpload();
FileBlob fb = new FileBlob(file);
fb.setMimeType("text/xml");
// uploading a file will return null since we used HEADER_NX_VOIDOP
session.newRequest("Blob.Attach").setHeader(
Constants.HEADER_NX_VOIDOP, "true").setInput(fb)
.set("document", "/myfile").execute();
File content not creating in Nuxeo server Error message:"Binary request not supported"
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2012 11:18 AM
Please edit your message to introduce clearly what you're doing and the problem you encounter.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2017 10:22 AM
Duplicate to https
