Hey Chris,

Try this:

content.getNodeData("image").getHandle() + "." +
content.getNodeData("image").getAttribute("extension");

This should build the path without the file name but works just fine. If you
need the file name, you can use .getAttribute("fileName");


Good luck!


Jackson Nicolas

On Tue, Mar 10, 2009 at 3:58 PM, ChrisAllan <
[email protected]> wrote:

>
>
> Hi,
>
> In the JCR I can see the url of an image that has been added to a standard
> text paragraph e.g.
> /untitled/mainColumnParagraphs/0/image/dlg_skype_about.jpg
>
> However, when I try and access this via getNodeData("image") it doesn't
> give
> me the path, as the content is of type binary. How can I get this string
> value? If you do getNodeDate("image").getHandle() it will give you the
> path,
> but minus the filename e.g. /untitled/mainColumnParagraphs/0/image
>
> Any help is greatly appreciated,
>
> Cheers,
>
> Chris
> --
> View this message in context:
> http://www.nabble.com/How-to-access-the-string-value-%28url%29-of-images-stored-with-type-binary-tp22426286p22426286.html
> Sent from the Magnolia - User mailing list archive at Nabble.com.
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>
>

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to