Mercurial > hg > orthanc
diff OrthancServer/ParsedDicomFile.cpp @ 1641:4e56b5a206b7
Support of binary tags encoded using data URI scheme
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Sep 2015 12:43:05 +0200 |
parents | 644c32c07306 |
children | e40fd0d925c5 |
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.cpp Wed Sep 23 12:02:39 2015 +0200 +++ b/OrthancServer/ParsedDicomFile.cpp Wed Sep 23 12:43:05 2015 +0200 @@ -1139,13 +1139,10 @@ void ParsedDicomFile::EmbedContent(const std::string& dataUriScheme) { - std::string mime, base64; - Toolbox::DecodeDataUriScheme(mime, base64, dataUriScheme); + std::string mime, content; + Toolbox::DecodeDataUriScheme(mime, content, dataUriScheme); Toolbox::ToLowerCase(mime); - std::string content; - Toolbox::DecodeBase64(content, base64); - if (mime == "image/png") { EmbedImage(mime, content);