I'm trying to create a .VCF file according to these specs (using version 3.0)
https://en.wikipedia.org/wiki/VCard#vCard_3.0
https://www.rfc-editor.org/rfc/rfc2426#section-3.1.4
It all works fine unless the PHOTO field.
If I try to set the PHOTO using an external image (using the URI value) there is no way to have my mac or android to import the image to the created contact.
PHOTO;VALUE=URI;TYPE=GIF:http://www.example.com/dir_photos/my_photo.gif
It works if I embed base64 code on the JPG file.
Thank you. Has anyone succeded?
A vCard is saved as a . vcf file, which is the Internet standard for sharing contact information. When you send a vCard, its . vcf file is sent with the message as an attachment.
Total number of vCards: 50,000. Maximum size of a vCard: 256KB (photo + text) Maximum photo size for a vCard: 224KB.
vCard, also known as VCF (Virtual Contact File), is a file format standard for electronic business cards. vCards can be attached to e-mail messages, sent via Multimedia Messaging Service (MMS), on the World Wide Web, instant messaging, NFC or through QR code.
You need to include a base64 encoded image uri:
PHOTO;ENCODING=BASE64;TYPE=PNG:iVBORw0KG...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With