cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing contents of a file?

targa2000
Champ in-the-making
Champ in-the-making
How would I access the contents of a file in the repository programmatically with Java or Javascript or php?
1 REPLY 1

mrogers
Star Contributor
Star Contributor
You would download the content by its URL.

In Java:
First you would run a search query or lookup to find the NodeRef and property you want to display.
Then you would get a ContentReader for that NodeRef and property.

In Java Script:
http://wiki.alfresco.com/wiki/3.2_JavaScript_API#ScriptNode_API

And there are also a large collection of remote APIs for accessing the content e.g. CMIS and ftp.