cancel
Showing results for 
Search instead for 
Did you mean: 

Howdo I get an InputStream to a node in an action

darkling235
Champ in-the-making
Champ in-the-making
I'm working from an action that needs to do some XML file io operations on the "firing event" node. Basically I need a way to get an inputstream to it. I've done some checking and ContentReader looks like it would work well for that but I can't figure out how to get one from the nodeRef. Can someone tell me the normal way of getting an input stream from within an action execute method? Thanks
1 REPLY 1

gavinc
Champ in-the-making
Champ in-the-making
Have a look at org.alfresco.web.app.servlet.BaseDownloadContentServlet, this has a good example of using the ContentService to get access to a ContentReader.