Howdo I get an InputStream to a node in an action

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2007 08:09 AM
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
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2007 08:33 AM
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.
