mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-04 15:45:58 +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:
parent
d1924af8c9
commit
90ada2fc42
1 changed files with 2 additions and 0 deletions
|
@ -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>");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue