Click here to Skip to main content
15,741,688 members
Please Sign up or sign in to vote.
2.54/5 (4 votes)
See more:
Hi, everyone! My goal is to upload an image into google drive using a C++ program. Now, i dont have much idea about doing it as i have never done anything like that before. I was studying the google API to upload and i am a little confused. So, the google API says that to upload an image in the google drive, I have to simply do the following-

POST /upload/drive/v2/files?uploadType=media HTTP/1.1
Content-Type: image/jpeg
Content-Length: number_of_bytes_in_file
Authorization: Bearer your_auth_token

Now, how do i implement this in c++. I mean what sort of libraries do i need to include? I really dont have any clue. Any links or suggestions can help me a lot. Thanks.
Updated 14-Jun-20 6:55am
Sergey Alexandrovich Kryukov 7-Sep-14 21:30pm    
What's wrong with just reading Google SDK documentation?

I have written this solution[^] which can help in such cases.
Share this answer
Some open-source products provide C/C++ wrappers for Google drive SDK. For example:[^],[^].

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900