Mercurial > hg > orthanc-databases
diff Framework/Common/ResultFileValue.cpp @ 246:483af3f35a4b
turning ResultFileValue into a base class, and implement its primitives for PostgreSQL
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 14 Apr 2021 08:42:31 +0200 |
parents | 9d00e5e073e8 |
children | 16aac0287485 |
line wrap: on
line diff
--- a/Framework/Common/ResultFileValue.cpp Tue Apr 13 18:50:44 2021 +0200 +++ b/Framework/Common/ResultFileValue.cpp Wed Apr 14 08:42:31 2021 +0200 @@ -35,7 +35,11 @@ switch (target) { case ValueType_BinaryString: - return new BinaryStringValue(content_); + { + std::string content; + ReadWhole(content); + return new BinaryStringValue(content); + } default: throw Orthanc::OrthancException(Orthanc::ErrorCode_BadParameterType);