display image from binary data

$picture = is the binary data
$en=base64_encode($picture);
$mime="image";
$binary_data="data:" . $mime . ";base64," . $en ;
<img src="&lt;?php echo $binary_data; ?&gt;" alt="Test" />

Related posts:

This entry was posted in php. Bookmark the permalink.