enesser / vCards-js

Create vCards to import contacts into Outlook, iOS, Mac OS, and Android devices from your website or application.
MIT License
419 stars 154 forks source link

Embed photo directly as base64 ? #8

Closed fvisticot closed 9 years ago

fvisticot commented 9 years ago

Is it possible with this library to embed the photo itself as a base64 content in the vcard ?

enesser commented 9 years ago

I'll amend the documentation since this is a newer feature I haven't documented yet, but to attach a photo or a logo using base64 encoding, you'd do this:

vCard.photo.embedFromFile('c:\path\file.png'); vCard.logo.embedFromFile('c:\path\file.png');

fvisticot commented 9 years ago

Works great !!!

Tx

Le 23 mai 2015 à 20:42, Eric J Nesser notifications@github.com a écrit :

I'll amend the documentation since this is a newer feature I haven't documented yet, but to attach a photo or a logo using base64 encoding, you'd do this:

vCard.photo.embedFromFile('c:\path\file.png'); vCard.logo.embedFromFile('c:\path\file.png');

— Reply to this email directly or view it on GitHub https://github.com/enesser/vCards-js/issues/8#issuecomment-104935828.