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 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!

    jsulmJ 1 Reply Last reply
    0
    • V vinaygopal

      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!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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 last edited by vinaygopal
        #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.

        jsulmJ 1 Reply Last reply
        0
        • V vinaygopal

          @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.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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
          2
          • jsulmJ jsulm

            @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 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!

            jsulmJ 1 Reply Last reply
            0
            • V vinaygopal

              @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!

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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
              2
              • jsulmJ jsulm

                @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 last edited by
                #7

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

                jsulmJ 1 Reply Last reply
                0
                • V vinaygopal

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

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 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
                  • dheerendraD Offline
                    dheerendraD Offline
                    dheerendra
                    Qt Champions 2022
                    wrote on 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

                    • Login

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