PHP base 64 to image conversion
<p>I have been trying this code to convert an image to base64 and then again saving it to an image file to disk but at the end i get an image file with invalid image text.</p>

<pre><code>&lt;?php

$b64image = base64_encode(file_get_contents('1.png'));

file_put_contents('abc.png',$b64image);

?&gt;
</code></pre>
