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

VCARD: Data-URL for base64-encoded photo #441

Open
lbuchs opened this issue Jan 14, 2025 · 1 comment
Open

VCARD: Data-URL for base64-encoded photo #441

lbuchs opened this issue Jan 14, 2025 · 1 comment

Comments

@lbuchs
Copy link

lbuchs commented Jan 14, 2025

according to RFC 6350 you can use a base64 data-url (RFC 2397) for photos:

       PHOTO:data:image/jpeg;base64,MIICajCCAdOgAwIBAgICBEUwDQYJKoZIhv
        AQEEBQAwdzELMAkGA1UEBhMCVVMxLDAqBgNVBAoTI05ldHNjYXBlIENvbW11bm
        ljYXRpb25zIENvcnBvcmF0aW9uMRwwGgYDVQQLExNJbmZvcm1hdGlvbiBTeXN0
        <...remainder of base64-encoded data...>

Source: https://datatracker.ietf.org/doc/html/rfc6350#section-6.2.4

But this cannot be read by Outlook CalDav Synchronizer; the following error is logged:

<MappingWarnings>
     <string>Could not load picture for contact.</string>
</MappingWarnings>

Outlook CalDav Synchronizer works with the following format:

       PHOTO;ENCODING=b;TYPE=JPEG:MIICajCCAdOgAwIBAgICBEUwDQYJKoZIhv
        AQEEBQAwdzELMAkGA1UEBhMCVVMxLDAqBgNVBAoTI05ldHNjYXBlIENvbW11bm
        ljYXRpb25zIENvcnBvcmF0aW9uMRwwGgYDVQQLExNJbmZvcm1hdGlvbiBTeXN0
        <...remainder of base64-encoded data...>

Thunderbird only accepts the data url, so at the moment there is no compatible variant. It would be great if Outlook CalDav Synchronizer can read the data-url.

@lbuchs lbuchs changed the title Data-URL for base64-encoded photo VCARD: Data-URL for base64-encoded photo Jan 14, 2025
@aluxnimm
Copy link
Owner

interesting, should be possible to implement I guess.

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

No branches or pull requests

2 participants