[Solved] How can I encode/decode to base64?


You don’t have to use imagecreatefromstring in your code. You can encode/decode with php base64 functions.

$imageEncoded = base64_encode($your_image);
$imageDecoded = base64_decode($imageEncoded);

3

solved How can I encode/decode to base64?