Converts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit unsigned integer array.
public static byte[] FromBase64String( string s )
s - The string to convert
An array of 8-bit unsigned integers that is equivalent to s.
string base64Encoded = "YmFzZTY0IGVuY29kZWQgc3RyaW5n";
string base64Decoded;
byte[] data = System.Convert.FromBase64String(base64Encoded);
base64Decoded = System.Text.ASCIIEncoding.ASCII.GetString(data);