PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Dec 14, 2017 5:10 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Dec 01, 2017 11:45 pm 
Offline
Forum Newbie

Joined: Thu Nov 30, 2017 11:18 pm
Posts: 6
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!


Top
 Profile  
 
PostPosted: Sat Dec 02, 2017 12:14 am 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6604
Location: WA, USA
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
Syntax: [ Download ] [ Hide ]
header("Content-Type: " . $image_type_from_database); // image type is like image/png or image/jpeg
echo $blob_data_from_database;


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group