ConvertFromBase64String Method |
Converts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit unsigned integer array.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static byte[] FromBase64String(
string s
)
Parameters
- s
- Type: SystemString
The string to convert.
Return Value
Type:
ByteAn array of 8-bit unsigned integers that is equivalent to
s.
Exceptions Exception | Condition |
---|
ArgumentNullException | s is null. |
FormatException | The 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