In PHP how do I take a base64 encoded png and output that png as an image?

Posted by Drew LeSueur on Stack Overflow See other posts from Stack Overflow or by Drew LeSueur
Published on 2010-06-01T18:47:52Z Indexed on 2010/06/01 19:03 UTC
Read the original article Hit count: 217

Filed under:
|
|

I tried

header('Content-Type: image/png');
echo base64_decode($data);`

But it doesn't work.

© Stack Overflow or respective owner

Related posts about php

Related posts about png