1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 22:12:05 +01:00

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

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