Home | Sign in | English UK
  • Overview
  • How to?
  • Creating a Picasa album
  • Retrieving and modifying a Picasa album
  • Limitations
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
From January 2019, the functions for managing Google Picasa photo albums will no longer be available. Indeed, the corresponding Google API is no longer available from January 2019. It is necessary to use "Google Photo API"..
This new API is accessible via AuthIdentify and HTTP requests. See https://developers.google.com/photos/library/guides/overview for more details.
Picasa Albums Web is an application for managing the online images and photos proposed by Google.
Examples of processes that can be performed in WLanguage:
  • Retrieving the list of albums as well as their details.
  • Retrieving the list of photos found in an album, the tags of a photo, ...
  • Sending and retrieving photos, ...
  • Retrieving and including photos found in the Google Picasa accounts.
Warning: Before using a feature linked to Google services, we strongly recommend that you check the license for using this service. Some restrictions may apply. The content of the licenses may change over time.
PC SOFT is in no case responsible for the way the native access functions are used. Make sure that you comply with the license of the service provider.
How to?

Creating a Picasa album

To create a Picasa album:
  1. Create a gglAlbum variable. This variable contains the album characteristics.
  2. For each photo that must be included in the album, use a gglPhoto variable to describe the photo characteristics. You also have the ability to describe the tags and the comments associated with the photo.
  3. Add the photo to the album (each photo is an element of the PhotoData array found in the gglAlbum variable).
  4. Use <gglConnection variable>.Write to create the photo album on the Google server.
MyAlbum is gglAlbum
ATag is gglTag
APhoto is gglPhoto
AComment is gglComment
// Create the album
MyAlbum..Title = "Summer holiday"
MyAlbum..Description = "Summer holiday in Austria"
MyAlbum..Timestamp "UTC date and time"
MyAlbum..CommentingEnabled = True
// Photo 1
APhoto..CommentingEnabled = True
APhoto..FileName = "Test"
APhoto..Image = CompleteDir(fExeDir()) + CST_ImageDir + "US.jpg"
APhoto..Legend = "Tower near the river."
// Add tags
ATag..Text = "tower"
Add(APhoto..Tag, ATag)
ATag..Text = "United States"
Add(APhoto..Tag, ATag)
ATag..Text = "By night"
Add(APhoto..Tag, ATag)
// Add comments
AComment..Text = "Great picture!"
Add(APhoto..Comment, AComment)
AComment..Text = "Touched-up photo"
Add(APhoto..Comment, AComment)
AComment..Text = "How did you do it?"
Add(APhoto..Comment, AComment)
// Add the photo 1 into the album
Add(MyAlbum..PhotoData, APhoto)
// Photo 2
APhoto = new gglPhoto // Used to reinitialize
APhoto.Image = CompleteDir(fExeDir()) + CST_ImageDir + "puzzle.png"
Add(MyAlbum..PhotoData, APhoto)
// Photo 3
APhoto = new gglPhoto
APhoto..CommentingEnabled = False
APhoto..FileName = "Tropical fish"
APhoto..Image = CompleteDir(fExeDir()) + CST_ImageDir + "tropical.jpg"
Add(MyAlbum..PhotoData, APhoto)
// Photo 4
APhoto = new gglPhoto
APhoto..FileName = "Drawing"
IMG_Map.DrawCircle(20, 20, 50, 50, PastelGreen, LightRed)
APhoto..Image = IMG_Map.SaveImageJPEG(inMemory)
IMG_Map = ""
Add(MyAlbum..PhotoData, APhoto)
// Create the album
IF NOT sConnection.Write(MyAlbum) THEN
Error("Error while creating the album: " + ErrorInfo())

Retrieving and modifying a Picasa album

To retrieve and modify a Picasa album:
  1. Retrieve the requested Picasa album. You have the ability to use:
  2. To retrieve the photos from the album, browse the photos in the album (..PhotoData property of gglAlbum variable) and use <gglConnection variable>.FillPhoto. Different options allow you to specify the elements that will be retrieved.
  3. To add a photo into the album:
  4. To modify a photo in the album:
    • modify the characteristics of the photo in the album (via a gglPhoto variable if necessary).
    • use <gglConnection variable>.Write on the gglPhoto variable corresponding to the photo to modify to update the album on the Google server.


  • No image in PNG format can be added from a WINDEV Mobile application.
  • The Google Picasa functions use the APIs supplied by Google. Some features may operate on the online service and may be temporarily blocked by Google via the APIs.
Minimum version required
  • Version 24
This page is also available for…
Click [Add] to post a comment