URL albumPostUrl = new URL("https://picasaweb.google.com/data/feed/api/user/username/albumid/albumid"); PhotoEntry myPhoto = new PhotoEntry(); myPhoto.setTitle(new PlainTextConstruct("Puppies FTW")); myPhoto.setDescription(new PlainTextConstruct("Puppies are the greatest.")); myPhoto.setClient("myClientName"); MediaFileSource myMedia = new MediaFileSource(new File("/home/liz/puppies.jpg"), "image/jpeg"); myPhoto.setMediaSource(myMedia); PhotoEntry returnedPhoto = myService.insert(albumPostUrl, myPhoto);