Hi, have another more fundamental question... I'm writing a 2-way sync client using the Java API, and so need to be able to update existing photos within Picasaweb when they change on the local disk. However, I don't seem to be able to replace the media in an existing PhotoEntry with any success.
Here's my code: log.info( "Updating image in album " + albumName + ": " + imageFile); List<MediaContent> media = remotePhoto.getMediaContents(); media.remove(0); MediaFileSource myMedia = new MediaFileSource( newImageFile, "image/jpeg" ); remotePhoto.setMediaSource(myMedia); remotePhoto.setClient(SYNC_CLIENT_NAME); try { myPhoto.update(); } catch (Exception ex) { log.error("Unable to update media: " + newImageFile + ": " + ex); } I've tried it both with and without the lines where I remove the media content, but neither works. The photo is definitely being updated - I can see the data of the online photo updating the the new time, but the media isn't replaced. Am I missing something? I was wondering if for actually replacing the photo itself whether PhotoEntry.update() is the wrong thing to do, and I should actually delete the whole photoEntry and upload an entirely new entry. I couldn't find any example code which attempts to do this when I googled. What's the trick? -- You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-picasa-data-api+unsubscr...@googlegroups.com. To post to this group, send email to google-picasa-data-api@googlegroups.com. Visit this group at http://groups.google.com/group/google-picasa-data-api. For more options, visit https://groups.google.com/d/optout.