From Base 64 Decode String

using System;
using System.Data;
using System.Text.RegularExpressions;
using System.Text;
class Class1{
static void Main(string[] args){
foreach (byte b in Base64DecodeString("AAAA"))
Console.WriteLine(b);
}
public static byte[] Base64DecodeString(string inputStr)
{
byte[] encodedByteArray = Convert.FromBase64CharArray(inputStr.ToCharArray(), 0, inputStr.Length);
return (encodedByteArray);
}
}
Related examples in the same category