comparison 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
comparison
equal deleted inserted replaced
1640:48224db51ee7 1641:4e56b5a206b7
1137 } 1137 }
1138 1138
1139 1139
1140 void ParsedDicomFile::EmbedContent(const std::string& dataUriScheme) 1140 void ParsedDicomFile::EmbedContent(const std::string& dataUriScheme)
1141 { 1141 {
1142 std::string mime, base64; 1142 std::string mime, content;
1143 Toolbox::DecodeDataUriScheme(mime, base64, dataUriScheme); 1143 Toolbox::DecodeDataUriScheme(mime, content, dataUriScheme);
1144 Toolbox::ToLowerCase(mime); 1144 Toolbox::ToLowerCase(mime);
1145
1146 std::string content;
1147 Toolbox::DecodeBase64(content, base64);
1148 1145
1149 if (mime == "image/png") 1146 if (mime == "image/png")
1150 { 1147 {
1151 EmbedImage(mime, content); 1148 EmbedImage(mime, content);
1152 } 1149 }