Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how to upload images taken from QTapp to Cloud Server
QtWS25 Last Chance

how to upload images taken from QTapp to Cloud Server

Scheduled Pinned Locked Moved Unsolved General and Desktop
google driveqcameraapi
9 Posts 3 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vinaygopal
    wrote on 7 Nov 2019, 07:14 last edited by
    #1

    Hi All,

    i am usuing the QCamera module and capturing a picture and saving the picture onto my local system, is there a way where i can capture the picture and save the image onto a cloud server like (google drive), how to i call for google drive api from QT application?

    Thanks!

    J 1 Reply Last reply 7 Nov 2019, 07:33
    0
    • V vinaygopal
      7 Nov 2019, 07:14

      Hi All,

      i am usuing the QCamera module and capturing a picture and saving the picture onto my local system, is there a way where i can capture the picture and save the image onto a cloud server like (google drive), how to i call for google drive api from QT application?

      Thanks!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 7 Nov 2019, 07:33 last edited by
      #2

      @vinaygopal On which platform?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • V Offline
        V Offline
        vinaygopal
        wrote on 12 Nov 2019, 14:25 last edited by vinaygopal 11 Dec 2019, 14:30
        #3

        @jsulm sorry for the late reply, i am trying to implement this on a desktop, i am able to take a picture using the camera and also able to store it on to my local desktop is there a way i can take access to my google drive stroge server and upload the image directly to the server? i was going through this blog (https://www.qt.io/blog/2017/01/25/connecting-qt-application-google-services-using-oauth-2-0) and in my case what would be my scope for example in the blog it says (google->setScope("email");) as they are trying to access user emails. i am trying to access cloud storage. can you please guide me through the process

        Thank you.

        J 1 Reply Last reply 13 Nov 2019, 06:14
        0
        • V vinaygopal
          12 Nov 2019, 14:25

          @jsulm sorry for the late reply, i am trying to implement this on a desktop, i am able to take a picture using the camera and also able to store it on to my local desktop is there a way i can take access to my google drive stroge server and upload the image directly to the server? i was going through this blog (https://www.qt.io/blog/2017/01/25/connecting-qt-application-google-services-using-oauth-2-0) and in my case what would be my scope for example in the blog it says (google->setScope("email");) as they are trying to access user emails. i am trying to access cloud storage. can you please guide me through the process

          Thank you.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 13 Nov 2019, 06:14 last edited by
          #4

          @vinaygopal Is your Google storage mounted as a drive? If so you can access it as any other drive. If not then you probably will need to use Google API for uploading.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          V 1 Reply Last reply 15 Nov 2019, 03:02
          2
          • J jsulm
            13 Nov 2019, 06:14

            @vinaygopal Is your Google storage mounted as a drive? If so you can access it as any other drive. If not then you probably will need to use Google API for uploading.

            V Offline
            V Offline
            vinaygopal
            wrote on 15 Nov 2019, 03:02 last edited by
            #5

            @jsulm my drive is not mounted can you please give me an example about how i can use the google drive API? or a blog which shows me how to use the API.

            Thanks!

            J 1 Reply Last reply 15 Nov 2019, 05:34
            0
            • V vinaygopal
              15 Nov 2019, 03:02

              @jsulm my drive is not mounted can you please give me an example about how i can use the google drive API? or a blog which shows me how to use the API.

              Thanks!

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 15 Nov 2019, 05:34 last edited by
              #6

              @vinaygopal said in how to upload images taken from QTapp to Cloud Server:

              can you please give me an example about how i can use the google drive API

              No I can't as I never used it.
              But if you enter "google drive stroge api" in Google first match is https://cloud.google.com/storage/docs/json_api/v1/
              This is the JSON API, on the left side there are other APIs.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              V 1 Reply Last reply 18 Nov 2019, 09:27
              2
              • J jsulm
                15 Nov 2019, 05:34

                @vinaygopal said in how to upload images taken from QTapp to Cloud Server:

                can you please give me an example about how i can use the google drive API

                No I can't as I never used it.
                But if you enter "google drive stroge api" in Google first match is https://cloud.google.com/storage/docs/json_api/v1/
                This is the JSON API, on the left side there are other APIs.

                V Offline
                V Offline
                vinaygopal
                wrote on 18 Nov 2019, 09:27 last edited by
                #7

                @jsulm Hi can you give me any example as to how to use any API in QT?

                J 1 Reply Last reply 18 Nov 2019, 09:58
                0
                • V vinaygopal
                  18 Nov 2019, 09:27

                  @jsulm Hi can you give me any example as to how to use any API in QT?

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 18 Nov 2019, 09:58 last edited by
                  #8

                  @vinaygopal said in how to upload images taken from QTapp to Cloud Server:

                  how to use any API in QT?

                  Qt is a C++ framework, so you use other API as you do in C++.
                  Please take a look at Google documentation and examples (if there are any).

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  3
                  • D Offline
                    D Offline
                    dheerendra
                    Qt Champions 2022
                    wrote on 18 Nov 2019, 10:23 last edited by
                    #9

                    You can use QNetworkAccessManager upload the contents to the GoogleDrive. Also you need to setup the GoogleDrive for accessing like web-server.

                    Dheerendra
                    @Community Service
                    Certified Qt Specialist
                    http://www.pthinks.com

                    1 Reply Last reply
                    1

                    1/9

                    7 Nov 2019, 07:14

                    • Login

                    • Login or register to search.
                    1 out of 9
                    • First post
                      1/9
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved