[GH-ISSUE #441] VCARD: Data-URL for base64-encoded photo #425

Open
opened 2026-02-25 20:31:36 +03:00 by kerem · 1 comment
Owner

Originally created by @lbuchs on GitHub (Jan 14, 2025).
Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/441

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.

Originally created by @lbuchs on GitHub (Jan 14, 2025). Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/441 according to RFC 6350 you can use a base64 data-url ([RFC 2397](https://datatracker.ietf.org/doc/html/rfc2397)) 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: ```XML <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.
Author
Owner

@aluxnimm commented on GitHub (Jan 15, 2025):

interesting, should be possible to implement I guess.

<!-- gh-comment-id:2593450735 --> @aluxnimm commented on GitHub (Jan 15, 2025): interesting, should be possible to implement I guess.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/outlookcaldavsynchronizer#425
No description provided.