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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
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