Can I download a file (whose whole binary data I have) in the browser? Is there any API that allows you to do so? I am aware of making my own download endpoint in my own server, but right now since I have the whole blob, I want to download it in the browser itself.I have tried using ContentService.createTextOutput(StringData).downloadAsFile() but this does not work. Even if it does work for text files, it would not work for other binary files would it?Also, can CacheService can be used for this?
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-script-community.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/b771fe75-81c6-4818-9cb7-b34ee794afca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/U9XJGjmMN-o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-script-community.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAEZbQn89Dm_hZETnM4vbYz4F05a5OobrxJPYeexUEggMHaWWsw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAGCwEFA8J0XOi4HAaLLmawVHd_B73oz32wxPrmZ5kuWs%2BbLqWA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAEZbQn_VfWTYDewkf82qwmFprmSOg27d6bMbOz8mAcXkDGPRFw%40mail.gmail.com.
uploadToDrive("YOUR_URL_HERE", "DRIVE_FOLDER_ID", "FILE_NAME");