I have base64 encoded string (Encoded from image).
$str = "......";
Q : How to get encoded image information ?
Like,
1) Image name.
2) MIME type.
3) Image extension.
4) Image size.
I try below code from this url but it gives only MIME type not other information.
$encoded_string = "....";
$imgdata = base64_decode($encoded_string);
$f = finfo_open();
$mime_type = finfo_buffer($f, $imgdata, FILEINFO_MIME_TYPE);
Many thanks.