Closed linse closed 5 years ago
It is indeed working, but the statement you are evaluating is not an assignment; it is an equality check (x = uri
) which is correctly false. You can try this:
# require "uri.top";;
# Uri.of_string "data:image/jpeg;base64,MIICajCCAdOgAwIBAgICBEUwDQYJKoZIhv";;
Uri.t = data:image/jpeg;base64,MIICajCCAdOgAwIBAgICBEUwDQYJKoZIhv
So this format should already be supported by Uri -- please reopen this issue if not. Looking forward to your vCard library!
Ah, great, just a forgotten let, sorry about that! Phew! 👍
I'm currently implementing the vCard format (rfc6350) and a vCard may contain photos stored as a base64 encoded data URL.
https://tools.ietf.org/html/rfc6350#section-6.2.4:
I'm super happy with your library so far, thank you! 👍 I tested the following example and could not get it to parse yet:
Am I using it correctly here? If not supported yet, what would we need to implement to make the parsing of data URLs happen?