[ejabberd] Retrieve avatar from ejabberd

Badlop badlop at gmail.com
Wed Sep 5 20:31:58 MSD 2007


2007/9/5, mitcheloc <mitcheloc at gmail.com>:
> I'd like to retrieve the avatar for a jabber user from ejabberd and
> display it on a web page. Using an image tag such as:
>
> <img src="http://jabber.server.com/avatars/?jid=test@jabber.org />

mod_webpresence may be a solution.
http://ejabberd.jabber.ru/mod_webpresence

The benefit: no need to install your own php script and web server,
since ejabberd publishes the image using an internal mini web server.
For example, for the user bob at example.org, the avatar is:
http://example.org:5280/presence/jid/bob/example.org/avatar/

Problems that you may have with it:
- only for local users
- requires ejabberd svn
- the user must register in the service using Service Discovery


More information about the ejabberd mailing list