Mercurial > hg > orthanc
comparison Core/DicomParsing/FromDcmtkBridge.cpp @ 2905:ae20fccdd867
refactoring mime types
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Oct 2018 11:55:23 +0100 |
parents | b51233f03e7e |
children | d924f9bb61cc |
comparison
equal
deleted
inserted
replaced
2904:0dd54ee073db | 2905:ae20fccdd867 |
---|---|
1509 { | 1509 { |
1510 std::string binary; | 1510 std::string binary; |
1511 const std::string* decoded = &utf8Value; | 1511 const std::string* decoded = &utf8Value; |
1512 | 1512 |
1513 if (decodeDataUriScheme && | 1513 if (decodeDataUriScheme && |
1514 boost::starts_with(utf8Value, "data:application/octet-stream;base64,")) | 1514 boost::starts_with(utf8Value, URI_SCHEME_PREFIX_BINARY)) |
1515 { | 1515 { |
1516 std::string mime; | 1516 std::string mime; |
1517 if (!Toolbox::DecodeDataUriScheme(mime, binary, utf8Value)) | 1517 if (!Toolbox::DecodeDataUriScheme(mime, binary, utf8Value)) |
1518 { | 1518 { |
1519 throw OrthancException(ErrorCode_BadFileFormat); | 1519 throw OrthancException(ErrorCode_BadFileFormat); |