Loading Images

Hi,
I need to load images according to certain conditions on my forms. So what i’m doing is loading different images into one place with the setImageURL() function. However, I was only able to load images from the media folder for the solution;
E.g.
setImageURL(‘media:///’+_imageName+‘.jpg’)

I tired to do it from a local folder (like C:\Users\Public\Pictures\Sample Pictures) but was unsuccessful.
Is there any way of doing this?

Regards,
Hareendra

To do that, you need to use “file” instead of “media”, for example:

elements.myImage.setImageURL("file:///c:/image.jpg");

But are you really sure you don’t want to use the media library or the db to store the images? Because now, you have to make sure that all users have the images on their local disk.