Yes, it needs base64 encoding.
Sorry @TIMAI2 and @Automate_MyProject but all this is getting me even more confused. So what I understand is that I have to store in the Google Drive and retrieve using the Web Component. Right?
Upload Any File To Google Drive with AI2
If you edit the web app script to this:
function doPost(e) {
var data = Utilities.base64Decode(e.parameters.data);
var blob = Utilities.newBlob(data, e.parameters.mimetype, e.parameters.filename);
var FileID = DriveApp.getFolderById('<YOUR FOLDER ID HERE>').createFile(blob).getId();
return ContentService.createTextOutput(FileID);
}
It will return the file ID for the uploaded file which you can then use to download the file
@Mayank_Kumar, please follow the post submitted by @TIMAI2. It is easy to implement.
Everything you know is easy.
I think it isn't easy to help unless you exactly know what I want to do, I want to display a list of circulars using list view and when the user selects any one circular, the circular should download and open in another app that supports PDFs.
Ok, i understand what you want. It can be solved with google drive and google app script.
Ok, so that's the only way to make it right?
It is not the only way, just one of the way.
Oh, Ok I only have 3-4 months experience that's why I didn't know.
Don't worry, you can learn anything by doing. All the best.
have u finished ur work
I don't wanna sound rude but I kind of have quit App Inventor because I have a lot of work in school.