Viewing Google Cloud Storage Data in RAD Studio Data Explorer

Ready to get started?

Download for a free trial:

Download Now

Learn more:

Google Cloud Storage FireDAC Components

Rapidly create and deploy powerful Delphi & C++Builder Apps that integrate with Google Cloud Storage.



How to view Google Cloud Storage data in RAD Studio Data Explorer using the CData FireDAC Components for Google Cloud Storage.

Embarcadero RAD Studio provides a development environment for Delphi and C++Builder applications. With the CData FireDAC Components for Google Cloud Storage, you gain access to live Google Cloud Storage data within RAD Studio, abstracting the data into tables, views, and stored procedures that can be used to both retrieve Google Cloud Storage data. This article will walk through connecting to Google Cloud Storage using the Data Explorer.

Connecting to Google Cloud Storage Data Using Data Explorer

You can create a simple application for displaying Google Cloud Storage data by utilizing the CData FireDAC Components for Google Cloud Storage and a new VCL Forms Application:

  1. Open the Data Explorer in RAD Studio and expand FireDAC.
  2. Right-click on CData Google Cloud Storage Data Source and click Add New Connection.

  3. Name the connection.
  4. Fill in the necessary connection parameters and click OK.

    Authenticate with a User Account

    You can connect without setting any connection properties for your user credentials. After setting InitiateOAuth to GETANDREFRESH, you are ready to connect.

    When you connect, the Google Cloud Storage OAuth endpoint opens in your default browser. Log in and grant permissions, then the OAuth process completes

    Authenticate with a Service Account

    Service accounts have silent authentication, without user authentication in the browser. You can also use a service account to delegate enterprise-wide access scopes.

    You need to create an OAuth application in this flow. See the Help documentation for more information. After setting the following connection properties, you are ready to connect:

    • InitiateOAuth: Set this to GETANDREFRESH.
    • OAuthJWTCertType: Set this to "PFXFILE".
    • OAuthJWTCert: Set this to the path to the .p12 file you generated.
    • OAuthJWTCertPassword: Set this to the password of the .p12 file.
    • OAuthJWTCertSubject: Set this to "*" to pick the first certificate in the certificate store.
    • OAuthJWTIssuer: In the service accounts section, click Manage Service Accounts and set this field to the email address displayed in the service account Id field.
    • OAuthJWTSubject: Set this to your enterprise Id if your subject type is set to "enterprise" or your app user Id if your subject type is set to "user".
    • ProjectId: Set this to the Id of the project you want to connect to.

    The OAuth flow for a service account then completes.

  5. Back in the Data Explorer, expand the views for the connection.
  6. Create a new VCL Forms application and drag a view (for example: Buckets) onto the form.

  7. Select the BucketsView object on the form and set the Active property to true.
  8. Right-click on the object, bind visually, and link everything (*) to a new control (TStringGrid).

  9. Arrange the TStringGrid on the form and run the application to see the Buckets data.