comparison Core/Toolbox.cpp @ 1641:4e56b5a206b7

Support of binary tags encoded using data URI scheme
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Sep 2015 12:43:05 +0200
parents 334d3a92ed83
children a0a4fa28624c
comparison
equal deleted inserted replaced
1640:48224db51ee7 1641:4e56b5a206b7
1019 1019
1020 boost::cmatch what; 1020 boost::cmatch what;
1021 if (regex_match(source.c_str(), what, pattern)) 1021 if (regex_match(source.c_str(), what, pattern))
1022 { 1022 {
1023 mime = what[1]; 1023 mime = what[1];
1024 content = what[2]; 1024 DecodeBase64(content, what[2]);
1025 } 1025 }
1026 else 1026 else
1027 { 1027 {
1028 throw OrthancException(ErrorCode_BadFileFormat); 1028 throw OrthancException(ErrorCode_BadFileFormat);
1029 } 1029 }