Not logged in. · Lost password · Register
Forum: MatriX RSS
AliVireTechnologies1 #1
Member since Jun 2013 · 58 posts
Group memberships: Members
Show profile · Link to this post
Subject: How can i find that if someone has changed his avatar picture
I am saving contacts with picture on local device, but if someone change his profile picture then how can i detect it or find out.
This post was edited on 2013-07-12, 10:41 by Alex.
Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
this is described here in XEP-0153: vCard-Based Avatars.

See example 3 there. You add a Hash (SHA-1) of your photo to your presence. When you receive a presence with a Hash you check if you have the Image for this Hash. And only if you don't have it you request the vcard and store the image in your local storage.
I usually use the hash as the filename for the images.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS