PHP file_get_content receive Data omission

Source: Internet
Author: User
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"]);

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.