I have images stored in mysql as mediablobs, and I'd like to load (show) them directly from the database without having to save them as files first.
I need to load multiple images into a table (thumbs), so the header command won't do it. this is what I do:
$imagePath = 'files' . DS . 'recipe_' . $recipe['Recipe']['id'] . '.tmp';
file_put_contents($imagePath ,$recipe['Recipe']['image']);
echo $html->image(DS . $imagePath);