09-07-2009 01:41 AM
Store storeRef = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
Content[] contentResultArr = WebServiceFactory.getContentService().read(
new Predicate(new Reference[] { new Reference(storeRef, nodeId, null) }, storeRef, null),
Constants.PROP_CONTENT);
Content content = contentResultArr[0];
InputStream outFileContent = ContentUtils.getContentAsInputStream(content);
byte [] contentByteArr = ContentUtils.convertToByteArray(outFileContent);
outFileContent.close();
09-09-2009 11:36 AM
09-10-2009 01:17 AM
Content content = contentResultArr[0];
InputStream inputSteam= ContentUtils.getContentAsInputStream(content);
byte [] contentByteArr = ContentUtils.convertToByteArray(inputSteam);
outFileContent.close();
Content content = contentResultArr[0];
String contentString= ContentUtils.getContentAsString(content);
byte [] contentByteArr = contentString.getBytes();
outFileContent.close();
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.