Downloads and returns the contact's photo, if they have one.
If the contact doesn't have a photo (i.e. get_photo_etag returns null), null is returned, but no error is set in throws.
If cancellable is not null, then the operation can be cancelled by triggering the
cancellable object from another thread. If the operation was cancelled, the error g_io_error_cancelled
will be returned.
If there is an error getting the photo, a gdata_service_error_protocol_error error will be returned.
| this | |
| service | |
| content_type |
return location for the image's content type, or null; free with g_free |
| cancellable |
optional Cancellable object, or null |
| length |
return location for the image length, in bytes |
|
the image data, or null; free with g_free |