Latest news
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

How to print Codeigniter upload error

if you want to display errors on upload functionality in codeigniter. Use the following function ...