comparison OrthancServer/ParsedDicomFile.cpp @ 809:8ce2f69436ca

do not return strings with base64
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 07 May 2014 16:39:53 +0200
parents ecedd89055db
children 5dcfdd3bfca9
comparison
equal deleted inserted replaced
808:2d9a000aa3a6 809:8ce2f69436ca
1093 void ParsedDicomFile::EmbedImage(const std::string& dataUriScheme) 1093 void ParsedDicomFile::EmbedImage(const std::string& dataUriScheme)
1094 { 1094 {
1095 std::string mime, content; 1095 std::string mime, content;
1096 Toolbox::DecodeDataUriScheme(mime, content, dataUriScheme); 1096 Toolbox::DecodeDataUriScheme(mime, content, dataUriScheme);
1097 1097
1098 std::string decoded = Toolbox::DecodeBase64(content); 1098 std::string decoded;
1099 Toolbox::DecodeBase64(decoded, content);
1099 1100
1100 if (mime == "image/png") 1101 if (mime == "image/png")
1101 { 1102 {
1102 PngReader reader; 1103 PngReader reader;
1103 reader.ReadFromMemory(decoded); 1104 reader.ReadFromMemory(decoded);