File upload to Nuxeo server from Android mobile
// 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”
1 votes
0 answers
1511 views
Florent Guillaume
Please edit your message to introduce clearly what you're doing and the problem you encounter.
05/14/2012
Mathias Conradt
Duplicate to https://answers.nuxeo.com/general/q/bb42124a2b7149b58e64809789630002/File-blob-not-uploading-from-android-to-nuxeo-server
01/26/2017