PHP resize HTTP_RAW_POST_DATA to save image -


how http_raw_post_data , can resize create smaller image. image saved disk have classes this, more http_raw_post_data not know how do

    if ( isset ( $globals["http_raw_post_data"] ))  {     //the image file name        $filename =  $_get['nome'].".jpg";      // binary stream     $im = $globals["http_raw_post_data"];      //write     $fp = fopen('saves/print/'.$filename, 'wb');     fwrite($fp, $im);     fclose($fp);  } 

if image coming multipart html form, don't think can use raw post data @ all...i empty if recall attempts read previously.

instead, should use move_uploaded_file

then, resize image via imagemagick or gd:

resize image in php


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -