php imagedata


$image = 'http://www.writephponline.com/assets/images/facebook.png';
echo $imageData = base64_encode(file_get_contents($image));
die;
$src = 'data: '.mime_content_type($image).';base64,'.$imageData;
echo '<img src="', $src, '">';

Comments

Popular posts from this blog

Blogger post using PHP API

Pin payment laravel