From 90ada2fc42a91a10a1a1a379e8a80c1ecb483688 Mon Sep 17 00:00:00 2001 From: Derek DeMoro Date: Wed, 2 Nov 2005 16:47:35 +0000 Subject: [PATCH] VCard encoded bytes not set on setAvatarURL is fixed. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3022 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smackx/packet/VCard.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/org/jivesoftware/smackx/packet/VCard.java b/source/org/jivesoftware/smackx/packet/VCard.java index 0593dcddc..a35ec8cad 100644 --- a/source/org/jivesoftware/smackx/packet/VCard.java +++ b/source/org/jivesoftware/smackx/packet/VCard.java @@ -307,6 +307,7 @@ public class VCard extends IQ { } String encodedImage = StringUtils.encodeBase64(bytes); + avatar = encodedImage; setField("PHOTO", "image/jpeg" + encodedImage + ""); } @@ -318,6 +319,7 @@ public class VCard extends IQ { */ public void setAvatar(byte[] bytes) { String encodedImage = StringUtils.encodeBase64(bytes); + avatar = encodedImage; setField("PHOTO", "image/jpeg" + encodedImage + ""); }