How to show photo returned from my database?

(Rogerio Rios) #1

Hello. I searched the Forum and did not find what I’m looking for. I want to show the photo of the student in the application. In my database, I record the image address in the “PHOTO” field ex: “// images / Jhon Inser.tif”. I make a select sql that returns me this field “PHOTO” but I do not know which component of KODULAR to use. I only tried PICTURE.

0 Likes

(Aditya Rana) #2

You can use Image Component.

Try
Image1.SetPictureTo.Your Image URL

1 Like

(Rogerio Rios) #3

Thank you, this is the property I will use. Now, I have to study how to get the “PHOTO” field only once. Explaining: Select Sql returns 1 or many rows from the database. Each line has several fields and one of these fields is the “photo” field. The other fields are shown within a LISTVIEW as they should be shown. However, the PHOTO field only needs to be shown once because it is the student’s photo.

0 Likes

(Rogerio Rios) #5

Resolved : With this loop, I get only the value of a field.

0 Likes

(Aditya Rana) #6

I am glad, your issue was resolved.

1 Like