Comment afficher une image à partir d'un champ mysql blob dans symfony? Maintenant, c'est seulement l'écho du texte 'Array'.comment afficher une image à partir d'un champ mysql blob dans symfony?
Est-il possible juste d'ajouter une nouvelle propriété à la indexSuccess.php comme
<img src="<?php echo $persons->getPhoto('[property]') ?>" />
ou
<img src="<?php echo $persons->getPhoto()->[property] ?>" />
pour l'imprimer correctement?
Photo est-elle un champ ou un objet associé? –
C'est un champ renvoyé de la même manière que n'importe quel autre champ dans indexSuccess.php – jorgen
try '$ photo = $ persons-> getPhoto(); echo $ photo ['propriété']; ' – ajreal