php开发APP接口 接收客户端的图片
header(
"Content-Type: image/jpeg"
);
$filename
= time().
'.png'
;
$str
=
base64_decode
(
$logo
);
$fp
=
fopen
(
$imgPath
.
$filename
,
'w'
);
fwrite(
$fp
,
$str
);
fclose(
$fp
);