BinaryDecode
Encodes binary data to a string with the specified algorithm
Method Signature
Arguments
Argument
Type
Required
Description
Default
string
string
true
The string to decode that has binary encoded data
encoding
string
true
The encoding type to use for decoding the binary data. Valid values are: Hex, UU, Base64, Base64Url
Examples
Decode a string using hex back into binary encoding of the string
use binaryDecode to decode with hex
Result: [B@1a0d6c79
Decode a string using UNIX UUencode (UU) back into binary encoding of the string
use binaryDecode to decode with UNIX UUencode (UU)
Result: [B@20fe6ce1
Decode a string using base64 back into binary encoding of the string
use binaryDecode to decode with base64
Result: [B@2a0e22fa
Create a byte array with 16 bytes
Each byte in the array is set to 0
Result: 16
Additional Examples
Related
Last updated
Was this helpful?