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 + "");
}