How to insert and get images from database (blob column)

How to insert and fetch image through database in PHP

$img= addslashes(file_get_contents($_FILES["img"]["tmp_name"])); echo '<img src="data:image/png;base64,&#39; . base64_encode($row[&#39;image&#39;]).&#39;" />';

agyanadda

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 $type={blogger}:

Post a Comment