comparison OrthancServer/Internals/StoreScp.cpp @ 1686:14a32b2fa63e

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 07 Oct 2015 13:57:26 +0200
parents 3309878b3e16
children 4aaaecae5803
comparison
equal deleted inserted replaced
1685:22e7e2ba99db 1686:14a32b2fa63e
166 std::string buffer; 166 std::string buffer;
167 167
168 try 168 try
169 { 169 {
170 FromDcmtkBridge::Convert(summary, **imageDataSet); 170 FromDcmtkBridge::Convert(summary, **imageDataSet);
171 FromDcmtkBridge::ToJson(dicomJson, **imageDataSet); 171 FromDcmtkBridge::ToJson(dicomJson, **imageDataSet,
172 DicomToJsonFormat_Full, 256 /* max string length */);
172 173
173 if (!FromDcmtkBridge::SaveToMemoryBuffer(buffer, **imageDataSet)) 174 if (!FromDcmtkBridge::SaveToMemoryBuffer(buffer, **imageDataSet))
174 { 175 {
175 LOG(ERROR) << "cannot write DICOM file to memory"; 176 LOG(ERROR) << "cannot write DICOM file to memory";
176 rsp->DimseStatus = STATUS_STORE_Refused_OutOfResources; 177 rsp->DimseStatus = STATUS_STORE_Refused_OutOfResources;