Save Vcard with save avatar

I want to update a profile using the saveVCard method like SparkWeb does here.

Although I don’t see a way to set avatar property.

And I already have the new avatar in base64 encoded.

How do Spark desktop app does?