9951 explained code solutions for 126 technologies


google-big-queryHow do I download a Google Big Query logo in PNG format?


  1. To download a Google Big Query logo in PNG format, go to the Google Cloud Platform Console.
  2. On the left side of the page, select BigQuery.
  3. In the top right corner, click on the Logo icon.
  4. A drop-down menu will appear. Select Download logo.
  5. A dialogue box will appear. Select PNG from the drop-down menu.
  6. Click Download to save the logo to your computer.
  7. You can now use the logo in your project.

Example code

# Download the BigQuery logo
from google.cloud import storage

# Create a storage client
storage_client = storage.Client()

# Get the logo bucket
bucket = storage_client.get_bucket('bigquery-public-data')

# Create a blob from the filepath
blob = bucket.blob('logos/bigquery_logo_rgb.png')

# Download the file
blob.download_to_filename('bigquery_logo_rgb.png')

Output (if any):

No output.

Code explanation

  • from google.cloud import storage: imports the Google Cloud Storage library.
  • storage_client = storage.Client(): instantiates the Storage Client.
  • bucket = storage_client.get_bucket('bigquery-public-data'): fetches the bucket containing the BigQuery logo.
  • blob = bucket.blob('logos/bigquery_logo_rgb.png'): creates a blob object from the filepath.
  • blob.download_to_filename('bigquery_logo_rgb.png'): downloads the file to the specified filename.

Helpful links

Edit this code on GitHub