Mercurial > hg > orthanc
diff Core/Toolbox.cpp @ 1818:1065401501fb worklists
ParsedDicomFile::CreateFromJson
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 24 Nov 2015 16:48:23 +0100 |
parents | b268756c2cb9 |
children | 47d032c48818 |
line wrap: on
line diff
--- a/Core/Toolbox.cpp Tue Nov 24 13:45:55 2015 +0100 +++ b/Core/Toolbox.cpp Tue Nov 24 16:48:23 2015 +0100 @@ -554,6 +554,14 @@ } # endif + + void Toolbox::EncodeDataUriScheme(std::string& result, + const std::string& mime, + const std::string& content) + { + result = "data:" + mime + ";base64," + base64_encode(content); + } + #endif