Hello

I am trying to upload a file to nuxeo server, using the
automation client, so far I can do it in the next way.
// Upload The file
                File file = new File(filePath);
                FileBlob fb = new FileBlob(file);
                fb.setMimeType(fileType);
                // uploading a file will return null since we used
HEADER_NX_VOIDOP
                try 
                {
                                request=session.newRequest("Blob.Attach");
                                request.setHeader(Constants.HEADER_NX_VOIDOP, 
"true");
                        request.setInput(fb);
                        request.set("document", nuxeoPath);
                        request.execute();

This code works very well, but I want to improve the
performance, so instead send a File I would like to send a
byte array. I know how to transform one File into a Byte
array, but once I have the byte array, How can I send it to
nuxeo and transform it into a file again?

Thanks in advance 
---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to