powered by Jive Software

Set client icon

I’‘m using Smack to create a specialized jabber client, but i can’‘t figure out how to set an icon for the user that it’'s logging in as. Can anybody point me in the right direction?

Hey Sam,

I think that you are referring to User Avatar. Smack does not implement the newest JEP for user avatar named url=http://www.jabber.org/jeps/jep-0084.htmlJEP-0084: User Avatar[/url]. However, as far as I know the most popular way for exchanging avatars is still using vCards. So you can url=http://www.jivesoftware.org/forums/thread.jspa?forumID=39&threadID=140%2017& messageID=95894𗚖download /url the vCard implementation by Pheet and use it for storing and retrieving user avatars.

You can open the Smack debugger or just use Exodus (press F12) to see the sent and received packets when setting/getting the avatars.

Let us know if you need any help.

Regards,

– Gato

Thanks Gato. An avatar is exactly what I’‘m trying to accomplish however i don’‘t see anything about how to publish an avatar in the vCard docs or source. Also if I do need to use the vCard stuff do you have any idea when it might be included in the main smack release? I’'d much rather use it under the smack license than the GPL.

Sam

Hey Sam,

Sorry for the late reply. We received another vCard implementation that is under the MIT license so I guess that we are going to include it in Smack soon. I’'m not sure if there is any JEP written about using avatars in vCards. However, you can use Trillian or other clients that are including avatars in vCards and figure out how they are doing it.

Let me know how it goes.

Regards,

– Gato