C # base64 picture data transfer Plus (+) variable space problem

Source: Internet
Author: User

Today encountered a problem, the image of the Base64 data forwarding, the customer received base64 data generated image distortion.

Through log monitoring, comparing the data received by the customer and the data I sent, I finally found out that the place in the customer's Base64 data that should have been shown as a plus sign ("+") was replaced by a space. To ask Niang, a post said before the data to be pre-processing, the plus sign replaced with%2B. For some reason, the Base64 data received by the client after processing is consistent with the data sent.

Attached Original: Https://social.msdn.microsoft.com/forums/azure/fr-fr/5b98ba43-6a83-4620-998e-2ce02b1fea1b/xmlhttpsend

Recommend a base64 and pictures to convert to each other's website: http://www.vgot.net/test/image2base64.php?

C # base64 picture data transfer Plus (+) variable space problem

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.