Am 22.12.2015 um 10:34 schrieb Johan Vromans:

this is what happens to the photo:

PHOTO;ENCODING=b;TYPE=png:data:image/png;base64,iVBORw0KGgoAAAANSU[...]
The photo contents looks unmodified, but now it is (correctly!) registered
as a PNG.
Note that this is PHOTO property is only valid when used in vCard 4.0. In vCard 3.0 the entry should look like

PHOTO;ENCODING=b;TYPE=png:iVBORw0KGgoAAAANSU[...]

or

PHOTO;ENCODING=b;TYPE=png;VALUE=URI:data:image/png;base64,iVBORw0KGgoAAAANSU[...]
Though, the latter may not be well supported by vCard 3.0 clients.

In vCard 3.0 the default value type is "binary" whereas in vCard 4.0 the only allowed value type is "uri".

cheers

Marten


--

Marten Gajda
Schandauer Straße 34
01309 Dresden
Germany

tel: +49 177 4427167
email: marten@dmfs.org
twitter: twitter.com/dmfs_org

VAT Reg. No.: DE269072391