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?
2) Any suggestions on a Javascript library that is compatible with Netsuite that I can use to GZIP the file?
Thanks in advance!
Tim