diff --git a/src/managed/OpenLiveWriter.CoreServices/WebRequest/PageAndReferenceDownloader.cs b/src/managed/OpenLiveWriter.CoreServices/WebRequest/PageAndReferenceDownloader.cs index 24a65831..d894b56c 100644 --- a/src/managed/OpenLiveWriter.CoreServices/WebRequest/PageAndReferenceDownloader.cs +++ b/src/managed/OpenLiveWriter.CoreServices/WebRequest/PageAndReferenceDownloader.cs @@ -232,6 +232,10 @@ namespace OpenLiveWriter.CoreServices /// The progressHost to provide feedback to private void DownloadReference(ReferenceToDownload reference, FileBasedSiteStorage fileStorage, IProgressHost progressHost) { + if (IsBase64EmbededImage(reference.AbsoluteUrl)) + { + return; + } UrlDownloadToFile downloader; string fullPath; @@ -346,6 +350,12 @@ namespace OpenLiveWriter.CoreServices } } + private bool IsBase64EmbededImage(string url) + { + return url.StartsWith("data:image/", StringComparison.InvariantCultureIgnoreCase) && + url.ToLowerInvariant().Contains("base64"); + } + /// /// Used to actually commit the HTML to disk ///