Zru*_*uty 133
您必须使用Convert.FromBase64String将Base64编码string转换为byte[].
小智 31
这可能会有所帮助
byte[] bytes = System.Convert.FromBase64String(stringInBase64);
Run Code Online (Sandbox Code Playgroud)
尝试
byte[] incomingByteArray = receive...; // This is your Base64-encoded bute[]
byte[] decodedByteArray =Convert.FromBase64String (Encoding.ASCII.GetString (incomingByteArray));
// This work because all Base64-encoding is done with pure ASCII characters
Run Code Online (Sandbox Code Playgroud)