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
This commit is contained in:
Derek DeMoro 2005-11-02 16:47:35 +00:00 committed by derek
parent d1924af8c9
commit 90ada2fc42
1 changed files with 2 additions and 0 deletions

View File

@ -307,6 +307,7 @@ public class VCard extends IQ {
}
String encodedImage = StringUtils.encodeBase64(bytes);
avatar = encodedImage;
setField("PHOTO", "<TYPE>image/jpeg</TYPE><BINVAL>" + encodedImage + "</BINVAL>");
}
@ -318,6 +319,7 @@ public class VCard extends IQ {
*/
public void setAvatar(byte[] bytes) {
String encodedImage = StringUtils.encodeBase64(bytes);
avatar = encodedImage;
setField("PHOTO", "<TYPE>image/jpeg</TYPE><BINVAL>" + encodedImage + "</BINVAL>");
}