I assume you will have to create a file with the o...
# suitescript
a
I assume you will have to create a file with the object or string, an object or string is not a file and downloadFile may be specting a file object.