Hi
I am using Bootstrap css.
I have an issue to display image with data type BLOB, Really I don't know how to do this.
Pls advise me how to do this.
Thanks!
How to display image from mysql BLOB data type using PHP
Moderator: General Moderators
Re: How to display image from mysql BLOB data type using PHP
Make a script that queries the database for the BLOB data and for the type of image data it is, which you need to be storing. Then
Code: Select all
header("Content-Type: " . $image_type_from_database); // image type is like image/png or image/jpeg
echo $blob_data_from_database;