Hi, guys, I want to access my picasa albums with .Net C# code. If the album name contains no spaces or is in plain English, everything works fine.
But in my case I have e.g. two albums named "Sep 14" and "Лена" (unicode russian), so I try to get the photos out of them: PhotoQuery query = new PhotoQuery(AlbumQuery.CreatePicasaUri(m_uname, "Sep 14")); and PhotoQuery query = new PhotoQuery(AlbumQuery.CreatePicasaUri(m_uname, "Лена")); In both cases I get a GDataRequestException with "The remote server returned an error: (404) Not Found." error. Some further research and debugging showed up the following problems, The album name is being passed to Google.GData.Client.Utilities.UriEncodeUnsafe static method, which eventually calls Uri.HexEscape method for URI unsafe character, so 1. In case of "Sep 14" album name, I get "Sep%2014" safe string, when I tried to got to "http://picasaweb.google.com/data/feed/api/user/ lev.danielyan/album/Sep%2014?kind=photo" in chrome, I got an error, experimentally I figured out that the URL should be "http:// picasaweb.google.com/data/feed/api/user/lev.danielyan/album/Sep14? kind=photo", with NO space in it. 2. In case of "Лена" album name, I get the same string, which is considered to be safe, but again "http://picasaweb.google.com/data/ feed/api/user/lev.danielyan/album/Лена?kind=photo" gives a 404, and again, experimentally I figured out that the URL should be "http:// picasaweb.google.com/data/feed/api/user/lev.danielyan/album/rOaALF? kind=photo", which actually doesn't make sense to me at all. The full code snippet is: PicasaService m_service = new PicasaService("mytestpicasaapp"); m_service.Credentials = new Google.GData.Client.GDataCredentials (m_uname, m_pass); PhotoQuery query = new PhotoQuery(AlbumQuery.CreatePicasaUri(m_uname, "Sep 14")); //PhotoQuery query = new PhotoQuery(AlbumQuery.CreatePicasaUri (m_uname, "Лена")); PicasaFeed feed = (PicasaFeed)m_service.Query(query); Please help, I'm totally lost here. Thanks in advance, Lev --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Picasa-Data-API?hl=en -~----------~----~----~----~------~----~------~--~---
