Quick and simple:
Take a photo using the camera component
Upload the photo to Google Drive, using the KIO4-Base64 extension to convert image to base64
Return the file ID of the image back to the app
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(e.parameters.folderId).createFile(blob).getId();
return ContentService.createTextOutput(fileID);
}
You can use this image convertor extension for that