Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Using Suitescript to upload GZIP file via Rest API
I am creating an integration via a scheduled Suitescript to connect to a Rest API on the third party system. Part of the system requires that a JSON data file is submitted to the API as multipart form data containing a GZIP version of the JSON data. I have done lots of similar integrations in the past but not one that requires a binary file so looking for some advice here:
1) Can anyone provide some template code that shows how to create a binary file in this context? Not necessarily a gzip file, just the basics of how to handle binary files in Suitescript. Base64 encoded?
Tagged:
0