How do I get a HTTP_RAW_POST_DATA and can resize to create a smaller image. With the image saved to disk I have classes that does this, more to get HTTP_RAW_POST_DATA I do not know how to do
if ( isset ( $GLOBALS["HTTP_RAW_POST_DATA"] ))
{
//the image file name
$fileName = $_GET['nome'].".jpg";
// get the binary stream
$im = $GLOBALS["HTTP_RAW_POST_DATA"];
//write it
$fp = fopen('saves/print/'.$fileName, 'wb');
fwrite($fp, $im);
fclose($fp);
}