diff --git a/source/org/jivesoftware/smackx/packet/VCard.java b/source/org/jivesoftware/smackx/packet/VCard.java
index 1f1a2c4f6..a05842406 100644
--- a/source/org/jivesoftware/smackx/packet/VCard.java
+++ b/source/org/jivesoftware/smackx/packet/VCard.java
@@ -149,12 +149,12 @@ public class VCard extends IQ {
* Set generic, unescapable VCard field. If unescabale is set to true, XML maybe a part of the
* value.
*
- * @param value value of field
- * @param field field to set. See {@link #getField(String)}
+ * @param value value of field
+ * @param field field to set. See {@link #getField(String)}
* @param isUnescapable True if the value should not be escaped, and false if it should.
*/
public void setField(String field, String value, boolean isUnescapable) {
- if(!isUnescapable) {
+ if (!isUnescapable) {
otherSimpleFields.put(field, value);
}
else {
@@ -333,10 +333,7 @@ public class VCard extends IQ {
e.printStackTrace();
}
- String encodedImage = StringUtils.encodeBase64(bytes);
- avatar = encodedImage;
-
- setField("PHOTO", "
*
* NOTE: the method is asynchronous and does not wait for the returned value. + * * @param connection the XMPPConnection to use. * @throws XMPPException thrown if there was an issue setting the VCard in the server. */