最近在开发过程中经常遇到C# 客户端调用java开发的服务端程序,这次遇到的坑是C# 中的
Convert.FromBase64String(dummyData)
解密不了java返回的base64字符串,报如下错误:
1. FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters. ]
System.Convert.FromBase64String(String s) +0
System.Web.UI.ObjectStateFormatter.