|
-
Aug 10th, 2013, 01:24 PM
#1
Thread Starter
Lively Member
Writing to google drive
I need to write to google drive. I can read files from the drive but am having real trouble figuring out how to write to a simple text file. And above all that, I will take some advice from the pros out there...Is this even a good way to do this: I have software that will report usage statistics about itself to a file for viewing remotely. The data is not mission critical, but just nice to be able to review once in a while. Would it be better to have dedicated web server space? I am currently using drive to read files that are mission critical and have had zero problems. Would be nice to keep everything centrally located. Thanks.
-
Aug 10th, 2013, 02:56 PM
#2
Re: Writing to google drive
Why would you write to Google Drive? Why not simply create a text file and upload it?
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Aug 10th, 2013, 03:11 PM
#3
Thread Starter
Lively Member
Re: Writing to google drive
Well that is what I meant. Create a file and save to drive. I will need to be able to update the file. So I was thinking: retrieve file if it exists...add new line...save and upload...delete temp file that was downloaded. I need to have the google drive id number though. I am not sure how to find this on a newly uploaded file that was done programatically.
-
Aug 10th, 2013, 03:19 PM
#4
Re: Writing to google drive
Well again, why retrieve it? Keep a local copy, amend that, upload to overwrite the Google Drive copy.
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Aug 12th, 2013, 10:02 AM
#5
Thread Starter
Lively Member
Re: Writing to google drive
Ok I see. I have the backend finished that pulls historical data from database. It creates a text file with the appropriate data. I just need to upload it to the drive now. I have zero experience uploading to drive. It appears I need to install google drive api into vb as a first step? Is this correct? Is there no way to do something like a web request to post a file? thanks, Victor.
-
Aug 12th, 2013, 11:34 AM
#6
Re: Writing to google drive
First stop should have been the online SDK - https://developers.google.com/drive/
Then the next thing you should click is the appropriate link under the "Five minute quick start - Choose your language" header... one of which is .NET...
It will tell you how to:
Step 1: Enable the Drive API
Step 2: Install the Google Client Library
Step 3: Set up the sample
Step 4: Run the sample
-tg
-
Mar 7th, 2015, 01:03 PM
#7
New Member
Re: Writing to google drive
Victor,
I hope you got the help you needed. Now maybe you can help me. I am trying to read from Google drive in my vb.net program. Do you have any example code to do it?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|