11.1.2 FromBase64String Method
Decodes the specified Base64 string back into binary data. A Base64 string is produced by encoding binary data using Base64 encoding.
Base64 encoding is one of the commonly used binary-to-text encoding. You would encode your byte into a string when you need to include binary data as part of a text transmission, for example in a JSON string.
For more information about Base64 encoding, see this Wikipedia article.
Input Arguments
Name | Type | Mandatory | Description |
|---|---|---|---|
String | String (Unicode) | Yes | The Base64 string to be decoded back into binary data. |
Output Arguments
Name | Type | Mandatory | Description |
|---|---|---|---|
ErrorInfo | No | Indicates an error that might have occurred, for example if the specified string is not a valid Base64 string (wrong length, invalid character). |
Return Value
None
Examples
Define_Com Class(#XPRIM_Binary) Name(#HashBytes)
. . .
#HashBytes.FromBase64String String( #JsonObject.GetString('hash') )