As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi All, While uploading file from Android using "nuxeo-Android-Connector" i'm getting Exception like "Binary request are not supported". I'm resceiving this exception from defaultsession.java file of nuxeo-android-connector package. i'm using "Nuxeo Android simple client project" 4.0.0 Please help me for solving the issue.
Hello,
Hello Julien Carsique,
I have downloaded the code from nuxeo site version is 5.4
Hi,
You should have a look at the sample application. Post (binary upload) is supported, but not via a direct Automation call.
There are mainly 2 reasons for that :
That's why in the sample client and application, the binary resources are uploaded separately and simply referenced in the Automation call. This means the cinematic is :
You can take a look at BlobWidgetWrapper that is used to have a file upload widget.
Hope this helps.
Tiry
Hi Thierry Delprat,
The BlobWidgetWrapper is part of the nuxeo-android-connector.
There is some documentation about the principles [here][1], but for your specific question the best solution is probably to take a look at the sample code.
=> build nuxeo-android-connector, nuxeo-android-connector-ui and nuxeo-android-sample
you have everything demonstrated inside the sample :
Tiry [1]: http://doc.nuxeo.com/x/GoWE
Hi Tiry,
Doc Url is : http://doc.nuxeo.com/x/GoWE
i'll try to check the build, but the code you need is inside nuxeo-android-connector.
Hi Ravi,
did you find your answer? I encounter same issue during picture attachement. I try this code below without success and don't undestand storeAndUpload attributes.
Did you solve it for you?
Document imageDoc = documentMgr.createDocument(pictureBook, "Picture", "test"); FileUploader uploader = session.getAdapter(FileUploader.class); uploader.storeAndUpload("BID", "1", fb, new AsyncCallback<Serializable>() { @Override public void onSuccess(String executionId, Serializable data) { Log.i(TAG, "success"); } @Override public void onError(String executionId, Throwable e) { Log.i(TAG, "errdroior"); } });