$image = file_get_contents("http://image.jpg");
$image = chunk_split(base64_encode($image));
echo "<img src='data:image/png;base64,$image' alt='' />";
For more information see the Data URL scheme RFC
$image = chunk_split(base64_encode($image));
echo "<img src='data:image/png;base64,$image' alt='' />";
For more information see the Data URL scheme RFC


