Thursday, April 26, 2012

C# - Decoding String From Base64


static public string DecodeFrom64(string encodedData)
{
   byte[] encodedDataAsBytes = System.Convert.FromBase64String(encodedData);
   string returnValue = System.Text.ASCIIEncoding.ASCII.GetString(encodedDataAsBytes);
   return returnValue;
}

No comments:

Post a Comment