$sData = file_get_contents("php://input"); file_put_contents("temp.png",$sData); 直接接收二进制数据,然后写入到文件中即可