4 messages in com.googlegroups.google-picasa-data-apiRe: Spaces in the album name generati...
FromSent OnAttachments
Ben15 Apr 2008 12:40 
Cameron Hinkle15 Apr 2008 12:48 
Sven15 Apr 2008 13:01 
Ben15 Apr 2008 18:15 
Subject:Re: Spaces in the album name generating an error...
From:Sven (sv@google.com)
Date:04/15/2008 01:01:56 PM
List:com.googlegroups.google-picasa-data-api

Hi Ben,

The album title and the album URI are actually different strings, although we do generate the album URI based on the title. As Cameron mentioned we strip out spaces and other punctuation, as well as handling unicode titles etc. At the moment the easiest way to get an album from a title is to download the list of all albums and find one that matches. If you are allowing a user to choose an album you may want to use a drop-down that displays the title but uses the ID to actually find the album.

2008/4/15 Ben <bman@gmail.com>:

Hi,

Im new to the Google API and just encountered an error when trying to grab photos from a web album through the .Net API.

Here is the line of code that generates the exception: Dim pquery As New PhotoQuery(PicasaQuery.CreatePicasaUri(UserLoginBox.Text, AlbumGalleryCB.SelectedValue))

If the selected album name has no space, it works fine. Any 2 or 3 word album names generate the error. I tried replacing the spaces with a "+" sign, but the same error occurred.

Any help would be greatly appreciated.

Thanks, -Ben