Forum

PHP - base64 text i...
 
Notifications
Clear all

PHP - base64 text image to stream image

1 Posty
1 Users
0 Reactions
1,098 Widok
0
Topic starter

example for img src

1 Answer
0
Topic starter
            header('Content-Type: image/jpeg');
            $base64 =  "my_base64_code"
            $data = base64_decode( $base64 );
            $image = imagecreatefromstring($data);
            imagejpeg($image);

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: