How to retrive image which store on database in BLOB form ??
Dhiraj_1
0
Newbie Poster
Recommended Answers
Jump to Postfor direct output...(for a jpeg - but could be imagegif, imagepng etc)
$img = imagecreatefromstring($dbData); ob_start(); imagejpeg($img, null); $out = ob_get_contents(); ob_end_clean(); $output = "<img src="data:image/jpg;base64,' . base64_encode($out) . '" />'; //... echo $output;
All 2 Replies
LastMitch
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.