The Input Is Not A Valid Base-64 String As It Contains A Non-Base 64 Character
c The input is not a valid Base64 string as it contains a nonbase
The Input Is Not A Valid Base-64 String As It Contains A Non-Base 64 Character. The error means the length is not a multiple of 3, or a chararcter outside the set is used. Just compare encoded data with decoded, if you look carefully, some parts are encoded and others are not.
c The input is not a valid Base64 string as it contains a nonbase
So need to replace these values. Deserializing that string using a json serializer will take care of both the quotes and the escaped slash. I want to add an attachment to the gl journal line. This doesn’t accept by crm because it corrupt the base=64 format. All works fine until i try to upload a file. So i modify your script as below, and it works well on my machine with latest az.storage module : Hence it is not a valid base64 string. The error means the length is not a multiple of 3, or a chararcter outside the set is used. Your given string has length 402, so 402 % 4 = 2. Your workaround is really hacky 😉
At system.convert.frombase64_decode(char* startinputptr, int32 inputlength, byte* startdestptr, int32 destlength) I want to add an attachment to the gl journal line. Now lets look at the post back data you send items= aaaadwczbrc%3d which could be a valid url encoded base64 string (right charset and length), you don't show how its produced. And this is the line where it breaks: Your workaround is really hacky 😉 According to the error message, it seems that there is a syntax error in the nuget.config file, please try to close visual studio instance, then delete the nuget.config file in the path c:\users\\appdata\roaming\nuget\nuget.config. Since you're receiving json, it's always a good idea to parse that json properly, even if it is. Deserializing that string using a json serializer will take care of both the quotes and the escaped slash. All works fine until i try to upload a file. Once they have new password entry, the password encryption no longer causes this error. Hence it is not a valid base64 string.