The vCard avatar type always return jpg
Description
Environment
None
is related to
Activity
Show:
Florian Schmaus March 23, 2013 at 12:37 AM
If you don't want the MIME type to default to 'image/jpeg' then use the appropriate setAvatar() method where you can specify the MIME type. The javadoc was improved with https://igniterealtime.atlassian.net/browse/SMACK-413#icft=SMACK-413 to make that more clear.
Florian Schmaus March 22, 2013 at 5:02 PM
The vCard code needs some love and reworking. Scheduling this for a 4.0 release
Even if the vCard contains an avatar of type png, when modified it returns jpeg.
The MIME type need to become a member field of the VCard class.
Code places where the MIME type is hardcoded:
http://fisheye.igniterealtime.org/browse/smack/trunk/source/org/jivesoftware/smackx/packet/VCard.java?r1=13325&r2=13325&u=3#to356