comparison OrthancServer/DicomInstanceToStore.cpp @ 2955:bbfd95a0c429

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 Dec 2018 14:59:23 +0100
parents e5e3253a1164
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
2954:d924f9bb61cc 2955:bbfd95a0c429
186 // Serialize the parsed DICOM file 186 // Serialize the parsed DICOM file
187 buffer_.Allocate(); 187 buffer_.Allocate();
188 if (!FromDcmtkBridge::SaveToMemoryBuffer(buffer_.GetContent(), 188 if (!FromDcmtkBridge::SaveToMemoryBuffer(buffer_.GetContent(),
189 *parsed_.GetContent().GetDcmtkObject().getDataset())) 189 *parsed_.GetContent().GetDcmtkObject().getDataset()))
190 { 190 {
191 LOG(ERROR) << "Unable to serialize a DICOM file to a memory buffer"; 191 throw OrthancException(ErrorCode_InternalError,
192 throw OrthancException(ErrorCode_InternalError); 192 "Unable to serialize a DICOM file to a memory buffer");
193 } 193 }
194 } 194 }
195 195
196 if (summary_.HasContent() && 196 if (summary_.HasContent() &&
197 json_.HasContent()) 197 json_.HasContent())