Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed photo directly as base64 ? #8

Closed
fvisticot opened this issue May 23, 2015 · 2 comments
Closed

Embed photo directly as base64 ? #8

fvisticot opened this issue May 23, 2015 · 2 comments

Comments

@fvisticot
Copy link

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

@enesser
Copy link
Owner

enesser commented May 23, 2015

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');

@enesser enesser closed this as completed May 25, 2015
@fvisticot
Copy link
Author

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 #8 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants