. Advertisement .
..3..
. Advertisement .
..4..
Today I still get the ”invalid length for a base 64 char array or string” error when running my program.
I don’t know why this issue happens and the way to fix it. Can someone help me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The cause: The string’s length is the likely cause of the problem. Base-64 string length needs to be a multiple of 4. The padding character (=) should be added at the end if it isn’t.
Solution: You should use the code block below to check the string length and add padding characters if necessary: