title: How to save a POST jpeg to a server using PHP that isn't coming from a html form?
body: <p>I have to save a jpeg that is sent to my server as a POST with this information:
  "The image will be uploaded to the URL by using the POST method. The field "data_image" will contain the image/jpeg data and the "data_device_id" field will contain the device id of this device."</p>
  
  <p>I provide the URL to my server's PHP script. </p>
  
  <p>I don't think I can use this: $_FILES from <a href="http://www.w3schools.com/php/php_file_upload.asp" rel="nofollow">http://www.w3schools.com/php/php_file_upload.asp</a> as  it is not coming from a form therefore I have no "name" of the form. I searched all over but I can't figure out how to take this jpeg data and save it to a file on my server using a PHP script. I know how to use $_FILES from forms but this I'm stumped.</p>