diff OrthancServer/Sources/OrthancMoveRequestHandler.cpp @ 4174:067c679626a2

Fix transcoding in C-MOVE SCP, in the case where "SynchronousCMove" is "true"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 02 Sep 2020 17:34:21 +0200
parents e34c89e89aac
children 5a3374b6e707
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancMoveRequestHandler.cpp	Wed Sep 02 14:48:24 2020 +0200
+++ b/OrthancServer/Sources/OrthancMoveRequestHandler.cpp	Wed Sep 02 17:34:21 2020 +0200
@@ -119,10 +119,8 @@
         }
 
         std::string sopClassUid, sopInstanceUid;  // Unused
-
-        const void* data = dicom.empty() ? NULL : dicom.c_str();
-        connection_->Store(sopClassUid, sopInstanceUid, data, dicom.size(),
-                           true, originatorAet_, originatorId_);
+        context_.StoreWithTranscoding(sopClassUid, sopInstanceUid, *connection_, dicom,
+                                      true, originatorAet_, originatorId_);
 
         return Status_Success;
       }