What causing this “Invalid length for a Base-64 char array”

前端 未结 12 2047
走了就别回头了
走了就别回头了 2020-11-28 02:56

I have very little to go on here. I can\'t reproduce this locally, but when users get the error I get an automatic email exception notification:



        
12条回答
  •  没有蜡笔的小新
    2020-11-28 03:30

    After urlDecode processes the text, it replaces all '+' chars with ' ' ... thus the error. You should simply call this statement to make it base 64 compatible again:

            sEncryptedString = sEncryptedString.Replace(' ', '+');
    

提交回复
热议问题