Thumbnails (images) for users

Hi all, i’m working on implementing a client which interacts with OpenFire. Do you know if it is possible to set up thumbnails (pictures) for users when creating them? Is this something supported by OpenFire or has to be developed?

thanks in advance

best regards

Fernando Gabrieli

As I understand, when u create user, u wonna automatically download avatar? And u project will work like web-aplication or like skype?

If u work with web. I had same problem - i can’t find protocols for web to dawnload avatars to server, so i find other way. I decide dawnload avatars directly to the database. Avatars located in ofvcard table in DB and have special format:

<vCard xmlns="vcard-temp">

in tag u must write binary image format.

For get binary img u need download img, rhen:

$data = file_get_contents($_FILES['avatar_file']['tmp_name']);
$base64_enc   = base64_encode($data);

**$base64_enc - **it’s will be u binary img format…

When u will get back, from DB img in this format - for show this img in HTML code, write just:

$('#meine_avatar_img').attr('src', 'data:image/jpeg;base64,' + base_enc);