02-27-2009 01:06 AM
02-25-2010 03:34 PM
ContentFormat format = new ContentFormat(properties.getString("contentType"), "UTF-8");
DataHandler attachmentFile = new DataHandler(new FileDataSource(file));
// commented out since this results in an exception
//_contentService._setProperty(Call.ATTACHMENT_ENCAPSULATION_FORMAT, Call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME);
_contentService.addAttachment(attachmentFile);
_contentService.writeWithAttachment(obj.getNode().getReference(), Constants.PROP_CONTENT, format);
11-13-2013 03:05 PM
04-04-2010 09:26 AM
Hi,
With WebServices, there is a very definite wrong and right way to upload files. You need to tweak your code to upload the content direct to the server over http, otherwise WebServices (and this is just how it is) will be sucking the binary data into memory before pushing it into Alfresco. Alfresco itself does not pull the binaries into memory first.
Regards
04-07-2010 06:39 AM
04-07-2010 10:09 AM
Hi,
If you're starting from scratch, you should consider using CMIS as your starting point. There are servers available for testing directly e.g. http://cmis.alfresco.com/cmis.
Regards
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.