I am trying to create a back-end for my mobile application. I am sending an image\'s contents as a byte array in the HTTP request\'s body (output stream) I want to read this
You can obtain the request body by reading from php://input
$body = file_get_contents('php://input');
What you do with that data is up to you. You could write the data to a file with file_put_contents. As you mentioned it is image data, you might also be able to drop the data into an ImageMagick object with Imagick::readImageBlob. Another alternative is to use GD and load the image with imagecreatefromstring.