这是旧的胎面,但我希望它有帮助
我建议您阅读 vCard 的文档:https://www.rfc-editor.org/rfc/rfc2426 https://www.rfc-editor.org/rfc/rfc2426
对于图像:
fw.write("PHOTO;VALUE=uri:www.abc.net/pub/logos/abccorp.jpg\r\n");
or
fw.write("PHOTO;ENCODING=b;TYPE=JPEG:MIICajCCAdOgAwIBAgICBEUwDQYJKoZIhvcN
AQEEBQAwdzELMAkGA1UEBhMCVVMxLDAqBgNVBAoTI05ldHNjYXBlIENvbW11bm
ljYXRpb25zIENvcnBvcmF0aW9uMRwwGgYDVQQLExNJbmZvcm1hdGlvbiBTeXN0\r\n");
//<...the remainder of "B" encoded binary data...>
生日:
fw.write("BDAY:1996-04-15\r\n");
为了关系
fw.write("ROLE:Programmer\r\n");
助理用
fw.write("AGENT:BEGIN:VCARD\nFN:Susan Thomas\nTEL:+1-919-555-
1234\nEMAIL\;INTERNET:[email protected] /cdn-cgi/l/email-protection\nEND:VCARD\n\r\n");
对于笔记
fw.write("NOTE:This fax number is operational 0800 to 1715
EST\, Mon-Fri.\r\n");
对于标签:
fw.write("LABEL;TYPE=dom,home,postal,parcel:Mr.John Q. Public\, Esq.\n
Mail Drop: TNE QB\n123 Main Street\nAny Town\, CA 91921-1234
\nU.S.A.\r\n");
所有这些信息均来自https://www.rfc-editor.org/rfc/rfc2426 https://www.rfc-editor.org/rfc/rfc2426