I have a Google Form that logs all of its responses in a Google SpreadSheet I own on my Google Drive Account. The SpreadSheet of responses shows up in the "My Drive" section of Google Drive when accessed on a computer.
I'm currently writing an Android application that downloads that SpreadSheet and parses it for certain data.
I'm at the point where I've found the File and I'm able to get the File's Title, Description, and ExportLinks. However, when I try to get the File's DownloadUrl, I get a NullPointerException.
According to this part of the https://developers.google.com/drive/web/manage-downloads API ("file.getDownloadUrl())"), if there is no download url, the "The file doesn't have any content stored on Drive"
How can a SpreadSheet on my Drive with over 100 responses not have any content stored on Drive?
Content here refers to binary content. Google Spreadsheets (and the other Google Docs types) are not stored as binary content. You can get it in a binary format like csv using the ExportLinks. Alternatively, you can use the Spreadsheet-specific APIs like app script to interact with the spreadsheet contents.
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加