English
I have an "artist" table containing several fields including an image corresponding to the artist's photo.
This image is NOT STORED IN A FILE ON DISK, but in a BLOB field of the database.
(thank you not to discuss on the management of the images in BLOB or by file, it is not the subject of this post 😉)
​
I would like to know at first how to display this photo in a table (views / lists / table)?
​
I tried several methods without success ...
For example use a "view / html" with the following code:
<? Php
header ("content-type: image / jpeg");
echo "<img src = '"; echo "{var: artistes_table.row.Artistes.photo}"; echo "'/>";
?>
The result is a small square showing an empty image followed by a whole set of illegible characters ...
thank you in advance for your help
​
Français
J'ai une table "artiste" contenant plusieurs champs dont une image correspondant à la photo de l'artiste. Cette image N'EST PAS STOCKÉE DANS UN FICHIER SUR DISQUE, mais dans un champ BLOB de la base de données.
(merci de ne pas discuter sur la gestion des images en BLOB ou par fichier, ce n'est pas le sujet de ce post ;-).
J'aimerai dans un premier temps savoir comment afficher cette photo dans une table (views/lists/table) ?
J'ai essayé plusieurs méthodes sans succès...
Par exemple utiliser une "view/html" avec le code suivant :
<?php
header ( "content-type: image/jpeg");
echo "<img src='"; echo "{var:artistes_table.row.Artistes.photo}"; echo "'/>";
?>
Le résultat est un petit carré montrant une image vide suivie par la suite de tout un ensemble de caractères illisibles...
Merci d'avance pour votre aide
I have an "artist" table containing several fields including an image corresponding to the artist's photo.
This image is NOT STORED IN A FILE ON DISK, but in a BLOB field of the database.
(thank you not to discuss on the management of the images in BLOB or by file, it is not the subject of this post 😉)
​
I would like to know at first how to display this photo in a table (views / lists / table)?
​
I tried several methods without success ...
For example use a "view / html" with the following code:
<? Php
header ("content-type: image / jpeg");
echo "<img src = '"; echo "{var: artistes_table.row.Artistes.photo}"; echo "'/>";
?>
The result is a small square showing an empty image followed by a whole set of illegible characters ...
thank you in advance for your help
​
Français
J'ai une table "artiste" contenant plusieurs champs dont une image correspondant à la photo de l'artiste. Cette image N'EST PAS STOCKÉE DANS UN FICHIER SUR DISQUE, mais dans un champ BLOB de la base de données.
(merci de ne pas discuter sur la gestion des images en BLOB ou par fichier, ce n'est pas le sujet de ce post ;-).
J'aimerai dans un premier temps savoir comment afficher cette photo dans une table (views/lists/table) ?
J'ai essayé plusieurs méthodes sans succès...
Par exemple utiliser une "view/html" avec le code suivant :
<?php
header ( "content-type: image/jpeg");
echo "<img src='"; echo "{var:artistes_table.row.Artistes.photo}"; echo "'/>";
?>
Le résultat est un petit carré montrant une image vide suivie par la suite de tout un ensemble de caractères illisibles...
Merci d'avance pour votre aide