AnsweredAssumed Answered

How to Retrieve the Actual Content from a Alfresco NodeRef

Question asked by partha on Apr 22, 2008
Latest reply on Jul 16, 2010 by magno
Hi,
     I executed the search query based on the folder structure i have in my alfresco and i got a list of NodeRef object as a result of the query execution.

     For each NodeRef object i tried to retrieve the content using NodeService as below
            nodeService.getProperty(nodeRef, CMSModelConstants.CONTENT_PROP_QNAME);
     Constant mentioned is a Qname for cm:content, and the resule i got is
            contentUrl=store://2008/4/21/13/41/e6554862-0f97-11dd-9c3b-61b22a66865f.bin|mimetype=text/plain|size=24|encoding=UTF-8

      Can any one tell me how i can take the actual content of the NodeRef object which actually points to either a ".txt or .doc or .pdf etc." file.

Thanks
Partha.

Outcomes