jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Retrieving binary content
Date Tue, 28 Nov 2006 09:23:38 GMT

On 11/28/06, Ted Roeloffzen <ted.roeloffzen@gmail.com> wrote:
> I have a question. In my application I have a node named Plugin with a
> reference to a node named Image. The image node contains an image. Now in my
> application i retrieve the Plugin node, but i can't figure out how to get
> the node that it has a reference to and than how to retrieve the image it
> contains. Can anybody help me with that?

Something like this should work:

    Node plugin = ...;
    Node image = plugin.getProperty("...").getNode();
    InputStream data = image.getProperty("...").getStream();


Jukka Zitting

View raw message