Hey guys! I have a problem that I need some help w...
# general
a
Hey guys! I have a problem that I need some help with. I am receiving a JSON object which includes a media link(URL). I need to create a file in the filing cabinet by only using that URL. Not seeing this in the File Module Docs. Am I missing anything?
b
suitescript is pretty bad at binary
your best hope is to use N/https to get the file and hope the media server is nice enough to have a content type that netsuite can interpret as base 64
👍 1
save the body of the response in a file and hope for the best
r
Try this: var response = https.get({               url: 'https://yoururl.com'             }); Use response.body as the contents when you're creating the file.
🏁 1