PHP代码
<?php /** $HTTP_RAW_POST_DATA 包含 POST 提交的原始数据 */ if(isset($GLOBALS["HTTP_RAW_POST_DATA"])) { $jpg = $GLOBALS["HTTP_RAW_POST_DATA"]; $img = $_GET["img"]; $filename = "images/poza_". mktime(). ".jpg"; file_put_contents($filename, $jpg); } else { echo "Encoded JPEG information not received."; }
demo下载