Get Imagem from the Disk

Hi Outsystems community,

I am try to pick some images which was saved in the disk.
I am using the Image widget and i set it to "External" and at the URL property i put "D:\OS_Files\image_name.jpg", but i can't see the images.
Can someone help me?

Best Regards,
Diogo Miguel
Hi Diogo.

The URL property only can be used to access some Web Resource, not to a local file.

To use your images in your application you should add them to the "Images folder".
You can add images just dragging the files from your folder to Service Studio or use the "Import Image.." on Service Studio "Images" folder.

Luís Figueiredo
Hi Luís,

Thanks for your answer, but what i want is with the FileSystem extension, saving the images on a local folder and after that, i want to show it.
Do you know if with the <iframe> tag i could do this.

Best Regards,
Diogo Miguel

The <iframe> tag is not a good solution to do that.

Probably what you need to do is to use "File_ReadBinary", to access the file and after that you display the binary extracted.
Am I right?


I already have thought on that idea, but i don't know how to convert the binary to the image which i want.

Best Regards,
Diogo Miguel
I found it:
<img src="data:image/jpeg;base64{binary data}"/>

Thanks for your help Luís.

Best Regards,
Diogo Miguel