comparison OrthancFramework/UnitTestsSources/FromDcmtkTests.cpp @ 4465:fe774d8e904b

New configuration option: "DicomScuPreferredTransferSyntax" to control transcoding in C-STORE SCU
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 21 Jan 2021 17:08:32 +0100
parents 789676a8c96a
children b4c58795f3a8
comparison
equal deleted inserted replaced
4464:e8c7be7a02a9 4465:fe774d8e904b
2193 Orthanc::SystemToolbox::ReadFile(source, path); 2193 Orthanc::SystemToolbox::ReadFile(source, path);
2194 2194
2195 std::string c, k; 2195 std::string c, k;
2196 try 2196 try
2197 { 2197 {
2198 scu.Transcode(c, k, transcoder, source.c_str(), source.size(), false, "", 0); 2198 scu.Transcode(c, k, transcoder, source.c_str(), source.size(),
2199 DicomTransferSyntax_LittleEndianExplicit, false, "", 0);
2199 } 2200 }
2200 catch (OrthancException& e) 2201 catch (OrthancException& e)
2201 { 2202 {
2202 if (e.GetErrorCode() == ErrorCode_NotImplemented) 2203 if (e.GetErrorCode() == ErrorCode_NotImplemented)
2203 { 2204 {