Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Display an image using a path stored in a data-field

Avatar

Not applicable
Hi,



I need to insert an image into an image field using a path I'm retrieving from my database.

I did a first try with

Image1.resolveNode("value.#image").href = "D:/temp/Image.tif"; in the initialize script but it doesn't work.

The default image I stored under Image1/Object/Field/URL is gone but the new one is not shown.



Can anybody help?



Thanks



Gert
1 Reply

Avatar

Level 10
Getting an image dynamically like that was blocked in version 8 and greater. It was deemed to be a security risk that you could get information without the users knowledge.