c# base64 byte to string code example
Example 1: convert base64 string to string c#
byte[] data = Convert.FromBase64String(encodedString);
string decodedString = Encoding.UTF8.GetString(data);
Example 2: base64 string to byte array c#
byte[] l_Data = Convert.FromBase64String(l_PlainText);