赞
踩
$mime = getimagesizefromstring($buffer)['mime'];
$base64String = 'data:' . $mime. ';base64,' . chunk_split(base64_encode($buffer));
$mime = getimagesizefromstring($buffer)['mime'];
file_put_contents('a.' . $mime , $buffer);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。