Click or drag to resize
ConvertFromBase64String Method
Converts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit unsigned integer array.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static byte[] FromBase64String(
	string s
)

Parameters

s
Type: SystemString
The string to convert.

Return Value

Type: Byte
An array of 8-bit unsigned integers that is equivalent to s.
Exceptions
ExceptionCondition
ArgumentNullExceptions is null.
FormatExceptionThe length of s, ignoring white-space characters, is not zero or a multiple of 4. -or-The format of s is invalid. s contains a non-base-64 character, more than two padding characters, or a non-white space-character among the padding characters.
See Also