PHP - get image from byte array -


I am trying to create a back-end for my mobile application. I am sending the content of an image in the body of the HTTP request (output stream) as a byte array, I want to read this stream of bytes in PHP scripts and take back an image.

Can anyone tell me how can I do this?

Thank you.

You can obtain the request body

  $ body = Reading from file_get_contents ('php: // input');  

What you do with that data Depending on you, you can write the data in a file as you mentioned that this is image data, you can drop the data into the object can do. Another option is to use and load the image.


Comments

Popular posts from this blog

c# - ListView onScroll event -

Linux Terminal Problem with Non-Canonical Terminal I/O app -