Set VCard Image from URL:
I know the profile image of user and after making the connection to the ejabberd server using strophe i am setting profile image in vcard using the strophe stanza.
Below is example of setting the image url in the vcard:
iq = $iq({ type: 'set', to: currentUserObj.jabberid+ "@" + CDomain }).c('vCard', { xmlns:'vcard-temp' }).c('PHOTO').c('EXTVAL', currentUserObj.profileImg);
connection.sendIQ(iq);
Hope it'll help someone :)