07-08-2013 09:03 AM
File file = <file passed from UI>
Document document= <get Document object from Alresco through id>
ContentStream contentStream = new ContentStreamImpl(documentgetName(), BigInteger.valueOf(file.asBytes()), file.getContentType(), file.asStream());
Map<String, Object> properties = new HashMap<String, Object>();
properties.put("cm:description", "my personal description");
document.updateProperties(properties, false);
document.setContentStream(contentStream, true, false);
07-10-2013 11:49 AM
Object is not a PWC!