Re: Getting the avatar (Photo ? Logo?)
From: Jakob Schroeter <js@xxxxxxxxxx>
Date: Mon, 15 Jan 2007 01:29:27 +0100
Hi,

On Sun Jan 14 2007, Olivier Rossiny wrote:
> Hello,
>
> I'm writing a small XMPP client, and right now, I'm working on the roster.
> But I can't find information on how to get my contacts' avatar...
>
> I already have the VCard, but first of all, should I use the Photo ? the
> Logo ? and then, how to retrieve the data ??

PHOTO is the one (as specified in XEP-0153: vCard-Based Avatars).

In gloox, the avatar is stored in the binval attribute of a VCard::Photo 
struct which you can retrieve from a VCard using photo().

cheers,
Jakob

Attachment: pgpN62YHxkjcD.pgp
Description: PGP signature

-- 
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx