How to convert a Base64 file to a string datatype

The below code in the Calculator is used to convert a Base64 file to a string datatype.

image

Copy and paste the code below:

let base64String=createBuffer(input.record).toString(‘base64’);

Additional information: