Home » PHP » Decode binary image data to image file

Decode binary image data to image file

<?php

$output = json_decode($result);

foreach($output as $value) {
echo $value->id.’–‘.$value->count.‘–‘;
echo ‘<img src=”data:image/jpg;base64,’.$value->photo.'” width=”50″ height=”50″ alt=”embedded folder icon”><br />’;
}

?>

Leave a Reply

x

Check Also

Export Database using codeigniter

Database Utility Class : CodeIgniter PHP script to download mysql db-codeigniter,Backup MySQL database with CodeIgniter ...