Node contentNode = getFileContentNode(
session, companyId, repositoryId, fileName, versionNumber);
Property property = contentNode.getProperty(JCRConstants.JCR_DATA);
Value value = property.getValue();
Binary binary = value.getBinary();
<BUG>is = new UnsyncBufferedInputStream(binary.getStream());
}</BUG>
catch (RepositoryException re) {
throw new SystemException(re);
}

Node contentNode = getFileContentNode(
session, companyId, repositoryId, fileName, versionNumber);
Property property = contentNode.getProperty(JCRConstants.JCR_DATA);
Value value = property.getValue();
Binary binary = value.getBinary();
return binary.getStream();
}
catch (RepositoryException re) {
throw new SystemException(re);
}
