【发布时间】:2011-12-02 23:21:43
【问题描述】:
我有一个适用于 iPhone 的网络服务。我从 iPhone 收到二进制形式的图像。我想问的是我们能否确定以二进制形式发送的图像的扩展名。
我的代码:
$data=base64_decode($data);
$path='event_image/img_out.gif'; /// issue is here
$fp=fopen($path,'w+');
if($fp){ fwrite($fp,$data); fclose($fp); }
【问题讨论】:
-
php image type detection 的可能重复项