How to decode a base64 string (gif) into image in PHP / HTML
18:19 05 Nov 2010

I have a base64 encoded string that I would like to convert into an image in PHP / HTML.

Here is what I have:

$data = "R0lGODdhAAGAAKIAAP38+/3h3cjN5P3HwgAAAP8AoP8AGv8EIywAAAAAAAGAAAAD.....";
echo base64_decode($data);

// OR

echo '';

None of those work. Any suggestions?

Much appreciated! Catalin

php html base64