Hey everyone,
Been trying to update some Picasa Web Album photos and a little bit of
extra geo-location data using the Java client library. The code looks
like this:
picService.setUserCredentials(userID, userPass);
String filepath = "C:\\Users\\Public\\Pictures\\Sample
Pictures\
\Toco Toucan.jpg";
MediaFileSource myMedia = new MediaFileSource(new
File(filepath),
"image/jpg");
p.setMediaSource(myMedia);
p.setGeoLocation(44.60870,-45.038);
p.setTitle(new PlainTextConstruct("new title"));
p.setDescription(new PlainTextConstruct("Darcy on the
beach"));
p.setClient("myClientName");
p.setTimestamp (new Date());
p.updateMedia(true);
Date d = new Date();
Unfortunately when I run this I get an "UnsupportedOperationException:
Mdia cannot be updated"
Not sure what I've done wrong
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Data 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-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---