My C + + client sent the picture binary data +base64 encryption using HTTP POST to PHP server File_put_contents ($file, $_post["Zhaopian"]) receive data based on the client and PHP server received the data compared to the distribution of the existing directly received 4 branch 3 and 4 points of the data did not put into this question how I should solve .... File_put_contents how to guarantee the integrity of receiving data.
Reply to discussion (solution)
You're all ASCII, it's not going to fall.
Is the data very large? is the post_max_size limit exceeded?
Isn't it nice that you're transferring files in C + + with curl? There's a lot of code online.
You're all ASCII, it's not going to fall.
Is the data very large? is the post_max_size limit exceeded?
Isn't it nice that you're transferring files in C + + with curl? There's a lot of code online.
My picture is 117KB, it's not beyond post_max_size.
I was using curl to pass ... Good depressed client sent to a good to the server to receive how little.
You're all ASCII, it's not going to fall.
Is the data very large? is the post_max_size limit exceeded?
Isn't it nice that you're transferring files in C + + with curl? There's a lot of code online.
File_put_content can't write the number of bytes by itself.
File_put_content returns the number of bytes written to the data in the file
File_put_content returns the number of bytes written to the data in the file
The client sends 157962 to the server, and only 118425 is in suspense.
File_put_content returns the number of bytes written to the data in the file
Is there any way to output the data before $_post["Zhaopian"?
Echo strlen ($_post["Zhaopian"]);