Base64

◷ Reading Time: 1 minute

Read and converts data from and to Base64.

base64From

Reads input in Base64 and converts it to array of bytes. It returns a bytes array

 base64From (base64Content)
  • base64Content (String): Content in base64 format, it can be a string of bytes array (Mandatory)
Example: base64From ('aGk=')
Result: [
     104,
     105
 ]

base64To

Reads input in Base64 and converts it to array of bytes. It returns a base64 string.

 base64To (content)
  • content (String): String or bytes array (Mandatory)
Example: base64To ('hi')
Result: aGk=
Updated on January 12, 2021

Was this article helpful?

Related Articles