2
我在http://pastebin.com/TZUeECM3如何CONVER的base64圖像PHP
的base64數據如何爲它的base64以JPG或PNG,並保存在文件夾轉換。 這裏是我的代碼
$filename_path = md5(time().uniqid()).".jpg";
$decoded=base64_decode($base64_string);
file_put_contents("uploads/".$filename_path,$decoded);
謝謝,這對我有用。 –