From Base 64 Decode String

image_pdfimage_print

   


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);
    }   
}

           
          


This entry was posted in Data Types. Bookmark the permalink.