def GetPhoto(self, contact_entry_or_url):
    # TODO: add the ability to write out the binary image data to a file, 
    # reading and writing a chunk at a time to avoid potentially using up 
    # large amounts of memory.
    url = None
    if isinstance(contact_entry_or_url, gdata.contacts.ContactEntry):
      photo_link = contact_entry_or_url.GetPhotoLink()
      if photo_link:
        url = photo_link.href
    else:
      url = contact_entry_or_url
    if url:
      return self.Get(url, converter=str)
    else:
      return None
Retrives the binary data for the contact's profile photo as a string.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/gdata/contacts/service.py/ContactsService.GetPhoto