how to decode a base64 to byte[] c# code example
Example 1: base64 string to byte array c#
byte[] l_Data = Convert.FromBase64String(l_PlainText);
Example 2: base64decode C#
string base64Encoded = "your-encoded-text";
string base64Decoded;
byte[] data = System.Convert.FromBase64String(base64Encoded);
base64Decoded = System.Text.ASCIIEncoding.ASCII.GetString(data);