diff --git a/VisualCard/Parts/Implementations/KeyInfo.cs b/VisualCard/Parts/Implementations/KeyInfo.cs index 89e34a6..452ddaa 100644 --- a/VisualCard/Parts/Implementations/KeyInfo.cs +++ b/VisualCard/Parts/Implementations/KeyInfo.cs @@ -63,7 +63,8 @@ internal override BaseCardPartInfo FromStringVcardInternal(string value, string[ { // vCard 3.0 handles this in a different way keyEncoding = VcardParserTools.GetValuesString(finalArgs, "b", VcardConstants._encodingArgumentSpecifier); - if (!keyEncoding.Equals("b", StringComparison.OrdinalIgnoreCase)) + if (!keyEncoding.Equals("b", StringComparison.OrdinalIgnoreCase) && + !keyEncoding.Equals("BLOB", StringComparison.OrdinalIgnoreCase)) { // Since we don't need embedded keys, we need to check a URL. if (!Uri.TryCreate(value, UriKind.Absolute, out Uri uri)) diff --git a/VisualCard/Parts/Implementations/LogoInfo.cs b/VisualCard/Parts/Implementations/LogoInfo.cs index fb5f025..764b4ab 100644 --- a/VisualCard/Parts/Implementations/LogoInfo.cs +++ b/VisualCard/Parts/Implementations/LogoInfo.cs @@ -63,7 +63,9 @@ internal override BaseCardPartInfo FromStringVcardInternal(string value, string[ { // vCard 3.0 handles this in a different way logoEncoding = VcardParserTools.GetValuesString(finalArgs, "b", VcardConstants._encodingArgumentSpecifier); - if (!logoEncoding.Equals("b", StringComparison.OrdinalIgnoreCase) && !logoEncoding.Equals("BASE64", StringComparison.OrdinalIgnoreCase)) + if (!logoEncoding.Equals("b", StringComparison.OrdinalIgnoreCase) && + !logoEncoding.Equals("BASE64", StringComparison.OrdinalIgnoreCase) && + !logoEncoding.Equals("BLOB", StringComparison.OrdinalIgnoreCase)) { // Since we don't need embedded logos, we need to check a URL. if (!Uri.TryCreate(value, UriKind.Absolute, out Uri uri)) diff --git a/VisualCard/Parts/Implementations/PhotoInfo.cs b/VisualCard/Parts/Implementations/PhotoInfo.cs index f5a59b9..de3191b 100644 --- a/VisualCard/Parts/Implementations/PhotoInfo.cs +++ b/VisualCard/Parts/Implementations/PhotoInfo.cs @@ -63,7 +63,9 @@ internal override BaseCardPartInfo FromStringVcardInternal(string value, string[ { // vCard 3.0 handles this in a different way photoEncoding = VcardParserTools.GetValuesString(finalArgs, "b", VcardConstants._encodingArgumentSpecifier); - if (!photoEncoding.Equals("b", StringComparison.OrdinalIgnoreCase) && !photoEncoding.Equals("BASE64", StringComparison.OrdinalIgnoreCase)) + if (!photoEncoding.Equals("b", StringComparison.OrdinalIgnoreCase) && + !photoEncoding.Equals("BASE64", StringComparison.OrdinalIgnoreCase) && + !photoEncoding.Equals("BLOB", StringComparison.OrdinalIgnoreCase)) { // Since we don't need embedded photos, we need to check a URL. if (!Uri.TryCreate(value, UriKind.Absolute, out Uri uri)) diff --git a/VisualCard/Parts/Implementations/SoundInfo.cs b/VisualCard/Parts/Implementations/SoundInfo.cs index f86ca09..a73d2e1 100644 --- a/VisualCard/Parts/Implementations/SoundInfo.cs +++ b/VisualCard/Parts/Implementations/SoundInfo.cs @@ -63,7 +63,9 @@ internal override BaseCardPartInfo FromStringVcardInternal(string value, string[ { // vCard 3.0 handles this in a different way soundEncoding = VcardParserTools.GetValuesString(finalArgs, "b", VcardConstants._encodingArgumentSpecifier); - if (!soundEncoding.Equals("b", StringComparison.OrdinalIgnoreCase) && !soundEncoding.Equals("BASE64", StringComparison.OrdinalIgnoreCase)) + if (!soundEncoding.Equals("b", StringComparison.OrdinalIgnoreCase) && + !soundEncoding.Equals("BASE64", StringComparison.OrdinalIgnoreCase) && + !soundEncoding.Equals("BLOB", StringComparison.OrdinalIgnoreCase)) { // Since we don't need embedded sounds, we need to check a URL. if (!Uri.TryCreate(value, UriKind.Absolute, out Uri uri))