Display image from MYSQL using php pdo -



Display image from MYSQL using php pdo -

having problem seeing image on webpage. verified image inserted correctly exporting blob field jpg file , viewing it.

here code. why cannot see image on webpage ?

$mysql2 = "select pfilename,actual_img brigpics pfilename = '".$flist."'"; $stmt = $db1->prepare($mysql2); $stmt->execute(); $stmt->bindcolumn(1, $pfname, pdo::param_str); $stmt->bindcolumn(2, $actual_img, pdo::param_lob); $stmt->fetch(pdo::fetch_bound); header("content-type: image/jpeg"); echo $actual_img;

php mysql html5

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -