1👍
Looks like you are trying to decode the wrong thing.
$base = base64_decode($file);
$file
still contains the full Data URI, data:image/png;base64,ABCD…
– what you want to decode, is the ABCD…
part only.
👤04FS
Source:stackexchange.com
1👍
Looks like you are trying to decode the wrong thing.
$base = base64_decode($file);
$file
still contains the full Data URI, data:image/png;base64,ABCD…
– what you want to decode, is the ABCD…
part only.