Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1817:9a6de24209cf | 1818:1065401501fb |
---|---|
552 throw OrthancException(ErrorCode_BadFileFormat); | 552 throw OrthancException(ErrorCode_BadFileFormat); |
553 } | 553 } |
554 } | 554 } |
555 # endif | 555 # endif |
556 | 556 |
557 | |
558 void Toolbox::EncodeDataUriScheme(std::string& result, | |
559 const std::string& mime, | |
560 const std::string& content) | |
561 { | |
562 result = "data:" + mime + ";base64," + base64_encode(content); | |
563 } | |
564 | |
557 #endif | 565 #endif |
558 | 566 |
559 | 567 |
560 | 568 |
561 #if defined(_WIN32) | 569 #if defined(_WIN32) |