Posted By

mracoker on 02/01/10


Tagged

php image base64


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

wirenaught


PHP base64 to Image


 / Published in: PHP
 

  1. $img = imagecreatefromstring(base64_decode($string));
  2. if($img != false)
  3. {
  4. imagejpeg($img, '/path/to/new/image.jpg');
  5. }

Report this snippet  

You need to login to post a comment.