Forums

how to show the image of a database

Fasano 27 Apr, 2015
hi
I have a database of names in which I also included a photo.
Now I would like to have a list with the name surname and also the picture of the person. But I can not.
I did the whole process but do not know how to extrapolate the uploaded photo.
GreyHead 27 Apr, 2015
Hi Fasano,

This has been asked and answered before (Google search may find the earlier threads).

I think that you need to use the HTML box to add an image link into the column using the saved image name.

Bob
mabdelhady 28 Oct, 2015
Hello,

Can you please post a sample code to display an image stored in a database in a chronoconnectivity list, I have been trying to find an answer to this for a while.
Thanks,
GreyHead 28 Oct, 2015
Hi mabdelhady,

Do you have the image file saved in the database, or the image URL, or just the file name?

Bob
mabdelhady 28 Oct, 2015
I have the image URL stored in a database column.

Please help!

Mona
mabdelhady 28 Oct, 2015
I keep getting the image name instead of the image itself
GreyHead 02 Nov, 2015
Hi Fasano,

In the HTML box of the listing you need to build an <img /> tag something like this
model.image:<img src='/some/folder/path/{model.image_name}' />
Then add model.image:Image to the Columns list.

You need to replace the folder path, Model name and column names with those from your listing.

Bob
This topic is locked and no more replies can be posted.