vcard

can't add a base64-encoded image to vCard

徘徊边缘 提交于 2019-12-13 14:28:28
问题 I've successfully used Perl (via Embperl) to create a dynamically-generated vCard for employees, populating all the fields except for the photo. I can't get that working no matter what. (The code to generate a photo-less vCard works fine.) According to the information I can find online, the image must be base64-encoded in the vCard itself. The vCard spec (I'm using 3.0) supports URL-linked images, but my iPhone won't link to them that way. So it's base64 or nothing. Now, I know the base64

Contact image doesn't send when contact saved by CNContact

南楼画角 提交于 2019-12-13 14:27:25
问题 I've written a code that saves a contact with image. I used CNContact class to do it. It saves the contact successfully. The contact shows correctly with thumbnail in iOS's default Contact app. But my problem is that, when I share that contact via SMS or Email using iOS's default Contact app, the image doesn't add up in vCard. Can anybody guide to me to what I've done wrong? The following is the method that I used to save contact. It is in Swift. func addContact(withData: ContactModel,

How do you display an XMPP (Jabber) vcard photo in Delphi?

帅比萌擦擦* 提交于 2019-12-13 14:04:36
问题 How can I read a photo from an XMPP vcard (an avatar picture, which I think is in JPEG format) and display it in a Delphi TImage control? The XMPP server sends this XML: <presence id="e3T50-75" to="cvg@esx10-2022/spark" from="semra@esx10-2022" type="unavailable"> <x xmlns="vcard-temp:x:update"> <photo>897ce4538a4568f2e3c4838c69a0d60870c4fa49</photo> </x> <x xmlns="jabber:x:avatar"> <hash>897ce4538a4568f2e3c4838c69a0d60870c4fa49</hash> </x> </presence> 回答1: The XML you posted does not contain

Any application using vCard 4.0? [closed]

核能气质少年 提交于 2019-12-13 09:53:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Are there any applications that are using vCard 4.0 format? Generate contacts in this format or except it? 回答1: Last time I checked, the EM Client (http://www.emclient.com/) was using it 来源: https://stackoverflow.com/questions/19499497/any-application-using-vcard-4-0

How are different content types within QR-Codes distinguished?

泪湿孤枕 提交于 2019-12-13 05:23:13
问题 QR-Codes can contain different contents (URLs, vCards, Wifi-Configurations...) - in the specification of QR-Code seems nothing defined regarding content. How these different content types are distinguished? Only via parsing the first few characters of the content and matching to URL schemes (http:, tel:, fb:)? Or is there another 'magic' value inside the code? So it seems impossible to encode multiple contents in ONE QR-Code without gambling with reader-app-compatibility... e.g. one URL and

iOS failing to render vcf file

微笑、不失礼 提交于 2019-12-12 03:33:08
问题 I use twilio to share contact information of my users. I've been doing this for 6 months with no problems. Recently, I started receiving bug reports that the contact card isn't coming through. iOS is receiving it as an unknown attachment with a file name such as 'text_0.x-vcard' [see screenshot] I'm unable to reproduce this on my device - I've received reports of this from users with an iPhone 7, iPhone 6, and iPhone 5 - nothing consistent. No consistency in OS either. The vcf file is valid,

To remove vcard contact duplicates, comparing if two vcards are equal in .vcf file does not work with simple == vobject comparison

家住魔仙堡 提交于 2019-12-12 01:22:25
问题 #!/usr/bin/env python2.7 import vobject abfile='/foo/bar/directory/file.vcf' #ab stands for address book ablist = [] with open(abfile) as source_file: for vcard in vobject.readComponents(source_file): ablist.append(vcard) print ablist[0]==ablist[1] The above code should return True but it does not because the vcards are considered different even though they are the same. One of the ultimate objectives is to find a way to remove duplicates from the vcard file. Bonus points: Is there a way to

saving fetched XMPPframeWork vCards into CoreData in Swift4

只愿长相守 提交于 2019-12-11 15:15:42
问题 I was able to create and update a vCard using this code let xmppvCardStorage = XMPPvCardCoreDataStorage.sharedInstance() let xmppvCardTempModule = XMPPvCardTempModule.init(vCardStorage:xmppvCardStorage!) xmppvCardTempModule.activate(self.stream) xmppvCardTempModule.addDelegate(self, delegateQueue: DispatchQueue.main) let vCard = DDXMLElement(name: "vCard", xmlns: "vcard-temp") let vCardTemp = XMPPvCardTemp.vCardTemp(from: vCard) vCardTemp.nickname = "john" vCardTemp.jid = XMPPJID(string:

Trying to parse out vCard name entry with Regex

你离开我真会死。 提交于 2019-12-11 10:58:16
问题 I have the following Regex to parse out a vCard: (VB) Dim options As New RegexOptions() options = RegexOptions.IgnoreCase Or RegexOptions.Multiline Or RegexOptions.IgnorePatternWhitespace regex = New Regex("(?<strElement>(N)) (;[^:]*)? (;CHARSET=UTF-8)? (:(?<strSurname>([^;\n\r]*))) (;(?<strGivenName>([^;\n\r]*)))? (;(?<strMidName>([^;\n\r]*)))? (;(?<strPrefix>([^;\n\r]*)))? (;(?<strSuffix>[^;\n\r]*))?", options) m = regex.Match(s) If m.Success Then Surname = m.Groups("strSurname").Value

VCard 4.0 Phones Regex?

Deadly 提交于 2019-12-11 10:15:52
问题 I want to read VCard 4.0 file . I use this sample. but when I use this solution for this file. BEGIN:VCARD VERSION:4.0 N:Gump;Forrest;;; FN: Forrest Gump ORG:Bubba Gump Shrimp Co. TITLE:Shrimp Man PHOTO:http://www.example.com/dir_photos/my_photo.gif TEL;TYPE=work,voice;VALUE=uri:tel:+1-111-555-1212 TEL;TYPE=home,voice;VALUE=uri:tel:+1-404-555-1212 ADR;TYPE=work;LABEL="42 Plantation St.\nBaytown, LA 30314\nUnited States of America" :;;42 Plantation St.;Baytown;LA;30314;United States of America