Hi All, can anyone have any idea on how to send th...
# suitescript
n
Hi All, can anyone have any idea on how to send the files to restlets and in restlet we need create the file in specific folder in netsuite?
w
Base64-encode the file in a JSON-request to the restlet and then take that contents and create the file in the folder of your choice
💯 2
n
i want to send the csv file. how can i do that
w
Base64-encode the csv-file
b
Base 64 encoding will probably make it slightly harder to make a file
Base 64 encoding is for binary files
💯 2
But the basic idea is sound
Create a json object with the file contents a string for one of the json objects keys
Post the object to the restlet
You may be able to post the csv string by itself if you set the content type of the post to plaintext
n
thanks for the inputs. i'll check that