I am trying to fetch the content of the uploded document but I am getting the contentReader value as null.How to get the uploaded document content on onCreateNode method?Below is the code snippet that I was implemented
public void onCreateNode(ChildAssociationRef parentChildAssocRef) {
logger.info("Inside onCreateNode");
NodeRef parentFolderRef = parentChildAssocRef.getParentRef();
NodeRef docRef = parentChildAssocRef.getChildRef();
System.out.println("onCreateNode NodeRef "+docRef);
ContentReader reader = this.getContentService().getReader(docRef, ContentModel.PROP_CONTENT);
System.out.println("onCreateNode Reader "+reader);
}