comparison OrthancFramework/Sources/DicomFormat/DicomValue.cpp @ 4304:50b0c69b653a

continued abi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 06 Nov 2020 16:33:52 +0100
parents 785a2713323e
children d9473bd5ed43
comparison
equal deleted inserted replaced
4303:44b53a2c0a13 4304:50b0c69b653a
95 const std::string& mime) const 95 const std::string& mime) const
96 { 96 {
97 Toolbox::EncodeBase64(target, GetContent()); 97 Toolbox::EncodeBase64(target, GetContent());
98 target.insert(0, "data:" + mime + ";base64,"); 98 target.insert(0, "data:" + mime + ";base64,");
99 } 99 }
100
101 void DicomValue::FormatDataUriScheme(std::string& target) const
102 {
103 FormatDataUriScheme(target, MIME_BINARY);
104 }
100 #endif 105 #endif
101 106
102 // same as ParseValue but in case the value actually contains a sequence, 107 // same as ParseValue but in case the value actually contains a sequence,
103 // it will return the first value 108 // it will return the first value
104 // this has been introduced to support invalid "width/height" DICOM tags in some US 109 // this has been introduced to support invalid "width/height" DICOM tags in some US