diff 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
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.cpp	Wed May 07 16:30:47 2014 +0200
+++ b/OrthancServer/ParsedDicomFile.cpp	Wed May 07 16:39:53 2014 +0200
@@ -1095,7 +1095,8 @@
     std::string mime, content;
     Toolbox::DecodeDataUriScheme(mime, content, dataUriScheme);
 
-    std::string decoded = Toolbox::DecodeBase64(content);
+    std::string decoded;
+    Toolbox::DecodeBase64(decoded, content);
 
     if (mime == "image/png")
     {