Hmm, I'm not sure if there is a handy convenience method, but have you tried
something like:

//assuming $gp is a Zend_Gdata_Photos object and $photoEntry is the entry to
update
$fd = $gp->newMediaFileSource($filename);
$fd->setContentType("image/jpeg");
$photoEntry->setMediaSource($fd);
$photoEntry->save();

Cheers,
-Jeff

On Mon, Feb 2, 2009 at 12:37 PM, gravity <[email protected]> wrote:

>
> I would like to be able to replace an image in picasa with another
> image while leaving all the tags and metadata in place.
>
> For example:
> I have seen in python a method called UpdatePhotoBlob but I have not
> been able to locate such a method in Zend for php?
>
> When inserting an image in php the syntax looks like the following:
>
> $gphoto = new Zend_Gdata_Photos($client, "Google-
> DevelopersGuide-1.0");
>
> $filename = "location of the file";
> $fd = $gp->newMediaFileSource($filename);
> $fd->setContentType("image/jpeg");
> // Create a PhotoEntry
> $photoEntry = $gp->newPhotoEntry();
>
> What would be the syntax for replacing the same image?
>
>
> >
>

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