Does PHP get the binary byte stream from C-sharp 's POST request?

problem description

the requirement is something like this: the C-sharp side of U3D will send a binary byte stream of a picture through POST to request my PHP interface, and then I get the byte stream and transfer it to the image and save it on the server.

The problem with

is that he returns data through the interface, which I can"t get. I can get the data by myself through PHP and CURL.

here is my PHP code to get the binary byte stream

/ / $byteStream = file_get_contents ("php://input");

Jul.03,2021

enctype= "multipart/form-data" when php://input is not available

if it is the above case, it is recommended to directly use $_ FILE ['XXX'] to get the uploaded file


From https://www.cnblogs.com/chenp.

summarize
1, use $_ POST
2 for multipart/form-data and application/x-www-form-urlencoded formats, and use file_get_contents ('php://input')

for example if application/json can't get it.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ae4b-2c258.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ae4b-2c258.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?