comparison 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
comparison
equal deleted inserted replaced
4173:24759c286b5e 4174:067c679626a2
117 DicomAssociationParameters params(localAet_, remote_); 117 DicomAssociationParameters params(localAet_, remote_);
118 connection_.reset(new DicomStoreUserConnection(params)); 118 connection_.reset(new DicomStoreUserConnection(params));
119 } 119 }
120 120
121 std::string sopClassUid, sopInstanceUid; // Unused 121 std::string sopClassUid, sopInstanceUid; // Unused
122 122 context_.StoreWithTranscoding(sopClassUid, sopInstanceUid, *connection_, dicom,
123 const void* data = dicom.empty() ? NULL : dicom.c_str(); 123 true, originatorAet_, originatorId_);
124 connection_->Store(sopClassUid, sopInstanceUid, data, dicom.size(),
125 true, originatorAet_, originatorId_);
126 124
127 return Status_Success; 125 return Status_Success;
128 } 126 }
129 }; 127 };
130 128