Snippets tagged “data-uri”
2 snippets use this tag.
- Convert Base64 string to an image file?PHP
To convert a Base64 string to an image file in PHP, you can use the base64_decode() function to decode the Base64 string and then save it as an image file using file_put_contents().
- PHP - get base64 img string decode and save as jpg (resulting empty image )PHP
To decode a base64 encoded image string and save it as a JPG file in PHP, you can use the following code: