(TL;DR - How do you pass a JSON BLOB as an argument in google.script.run?)
Hello experts!!
I am running into an issue of needing to pass a BLOB formatted as JSON from a Web App to another Web App acting as an API to save the data to a spreadsheet.
I am using Tabulator (
http://tabulator.info/) because so far it is fitting my needs of loading a table with data from a Google Sheet, allowing it to be edited, and then "downloaded" as JSON. What I want to do is to "intercept" the download and send the JSON file to be processed by another Web App.
What I cannot find out how to do is to get the JSON BLOB created by Tabulator sent to a server side script using google.script.run.
I can provide code that I have HOWEVER what I am pretty sure is I just need help passing a BLOB using script.run
I have researched and have found it cannot be done and what needs to be done is encode the BLOB using Base64... and that is where I am lost.
So, nutshell:
How to encode a BLOB in Base64, pass it as an argument using script.run then decode it to be used?
Thanks in advance for guidance and suggestions!!