Decoding file content in custom script


#1

Hi,
I tried to access files in local storage using custom script (V8js) and it returned me data with encoded content. It was mentioned in one of the Dreamfactory forum to use base64.js. I placed “base64.js” file in storage/scripting folder and in the V8JS script, used require(“base64.js”). When I use Base64.decode() method, it is throwing an error “Array to String Conversion”. How should I proceed?

Thanks


#2

@Nikhil Could you share a code snippet so that we may see the Base64.decode() method used in the script?