2
Views
5
Comments
Get Imagem from the Disk
Question
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
2015-10-21 14-35-39
Luís Figueiredo
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.

Regards,
Luís Figueiredo
2013-03-12 12-27-41
Diogo Miguel
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
2015-10-21 14-35-39
Luís Figueiredo
Diogo,

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?

LF
2013-03-12 12-27-41
Diogo Miguel
Luís,

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
2013-03-12 12-27-41
Diogo Miguel
I found it:
<img src="data:image/jpeg;base64{binary data}"/>

Thanks for your help Luís.

Best Regards,
Diogo Miguel
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.