Hallo Mike,

thank you very much for your answer. Your solution is indeed a little
nicer than mine :-)
I just love how easy things are with the client library, much easier
than doing it manually with REST.

I don't really have other problems with the API, I just wanted to make
sure that I can get the original images back if I wanted to. While
this is not so much of an issue for JPGs, it very much is for BMPs or
lossless image formats.

Thanks for your help.

Regards,
Philipp


On May 18, 11:14 pm, Mike Erickson <[email protected]> wrote:
> Hello Philipp,
>
> Sorry to hear about all the trouble you've been having getting the full-size
> image back from PicasaWeb.  I can confirm that code similar to that provided
> above does return the full-size image.  I used the brief code below (without
> exception handling, which you should add):
>
>     URL feedUrl = new URL(
>       "https://picasaweb.google.com/data/feed/api/user/default?kind=album";);
>     PicasawebService myService = new
> PicasawebService("company-app-version");
>     myService.setUserCredentials(username, secretpassword);
>
>     UserFeed userFeed = myService.getFeed(feedUrl, UserFeed.class);
>
>     for (AlbumEntry albumEntry : userFeed.getAlbumEntries()) {
>       URL albumFeedUrl = new URL(
>           "https://picasaweb.google.com/data/feed/api/user/default/albumid/";
> + albumEntry.getGphotoId() + "?imgmax=d");
>       System.out.println("Album feed:" + albumFeedUrl.toString());
>       AlbumFeed albumFeed = myService.getFeed(albumFeedUrl,
> AlbumFeed.class);
>       for(PhotoEntry photoEntry : albumFeed.getPhotoEntries()) {
>         System.out.println("Full-size url:" +
> photoEntry.getMediaContents().get(0).getUrl());
>       }
>     }
>
> I suspect that you are having some other problem, and I would like to help
> you fix this problem.  Could you provide a larger piece of code we can
> review, or try running a smaller sample to see if that will work in your
> environment?
>
> Thank you,
> -Mike

-- 
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.

Reply via email to