How can I download a file from Google Drive?
I have been searching non-stop for this and have not found the answer. I
have a text file uploaded to Google Drive and want my VB application to
download it. I have tried the 'My.Computer.Network.DownloadFile' method
which downloads the html file of the file which says you are being
redirected (as google drive download link redirects you to a unique link
which expires after a period of time) and I have tried the WebClient
method which does not download the file at all. The url is along the basis
of: https://docs.google.com/uc?export=download&id=THEfileID. When I search
for the way to download from google drive on Google people say to look at
the Google drive api but I do not understand that at all. If you need any
additional information please ask. Thanks, zacy5000
Additional information: The link is not a direct download link but a link
that will redirect you to a temporary download link. I need it to download
WITHOUT being logged in to a account (the file is set to 'With url only'
in the sharing properties and it is a plain txt file.
No comments:
Post a Comment