I am trying to create a contact with a photo using the Javascript api. I am 
able to insert contacts, but the photo never shows up.  Below is the code I 
am using to create the photo. 

var photo = new google.gdata.contacts.ContactLink();
photo.setRel(google.gdata.contacts.ContactLink.REL_CONTACT_PHOTO);
photo.setHref("http://wildnikki09.files.wordpress.com/2009/01/fangtooth-fish1.jpg?w=477&h=341";);
photo.setType("jpg");
contact.addLink(photo);

Then, after adding all the other contact fields, I call insert entry.  The 
entry gets created, but does not include a photo.  Does anyone know how to 
do this? 

Thanks. 

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html

Reply via email to