如何从XMPP vcard(头像图片,我认为是JPEG格式)中读取照片并将其显示在Delphi TImage控件中?
XMPP服务器发送此XML:
<presence id="e3T50-75" to="cvg@esx10-2022/spark" from="semra@esx10-2022"
type="unavailable">
<x xmlns="vcard-temp:x:update">
<photo>897ce4538a4568f2e3c4838c69a0d60870c4fa49</photo>
</x>
<x xmlns="jabber:x:avatar">
<hash>897ce4538a4568f2e3c4838c69a0d60870c4fa49</hash>
</x>
</presence>
Run Code Online (Sandbox Code Playgroud)