Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
[ad_1]
I’m making an attempt to make a technique that exports VCF recordsdata from chosen contacts in an iOS app. Utilizing:
CNContactVCardSerialization.knowledge(with:)
This in fact works however doesn’t append images. I’ve one other technique to manually append the Base64 of the contacts picture to the vCard however as you may think about, the file turns into unreasonably massive when exporting many contacts with many images.
Nonetheless, taking a look at some apps on the App Retailer, i see they help this export with images however with minimal file sizes. Does anybody have any thought learn how to obtain this? The lacking piece is the X-IMAGETYPE:PHOTO
and X-IMAGEHASH:
keys. How do i get this from the CNContact
?
BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//iOS 15.1.1//EN
N:;Iby;;;
FN:Iby
item2.X-ABLabel:cellular
item3.TEL:+234 111 1111 1111
X-IMAGETYPE:PHOTO
X-IMAGEHASH:iWVBwrH/HzmeyhAD6anc6Z==
END:VCARD
[ad_2]