10-03-2007 10:55 AM
NodeRef typeNodeRef = nodeService.createNode(
typeParentRef,
ContentModel.ASSOC_CONTAINS,
QName.createQName("{http://www.alfresco.org/model/content/1.0}"
+ filename), typeQName, properties).getChildRef();
logger.debug("created type with ref=" + typeNodeRef);
ContentReader contentReader = contentService.getRawReader(contentUrl);
contentReader.setMimetype(reqParams.get("mimetype"));
ContentWriter contentWriter = contentService.getWriter(typeNodeRef,
ContentModel.PROP_CONTENT, true);
contentWriter.setMimetype(reqParams.get("mimetype"));
contentWriter.putContent(contentReader);
11-28-2008 05:34 AM
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.