I use the folowing code to display a picture stored in a database in a long blob field:
$q = "select CODE,PICT from test where CODE = '001'";
$qexec = @mysql_query($q) or die("Couldn't get image.");
$img = @mysql_result($qexec,0,"PICT");
This code is work, but if I insert in the page another character or the line echo "a character"; the pictures will not be displayed corectly.
Thx in advance.