Mercurial > hg > orthanc
comparison OrthancServer/Internals/StoreScp.cpp @ 524:d80376e73f52
fix of issue #8
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Sep 2013 17:48:00 +0200 |
parents | 4d5f0857ec9c |
children | 2d0a347e8cfc |
comparison
equal
deleted
inserted
replaced
521:2c739f76d0bb | 524:d80376e73f52 |
---|---|
115 try | 115 try |
116 { | 116 { |
117 FromDcmtkBridge::Convert(summary, **imageDataSet); | 117 FromDcmtkBridge::Convert(summary, **imageDataSet); |
118 FromDcmtkBridge::ToJson(dicomJson, **imageDataSet); | 118 FromDcmtkBridge::ToJson(dicomJson, **imageDataSet); |
119 | 119 |
120 if (FromDcmtkBridge::SaveToMemoryBuffer(buffer, *imageDataSet) < 0) | 120 if (!FromDcmtkBridge::SaveToMemoryBuffer(buffer, *imageDataSet)) |
121 { | 121 { |
122 LOG(ERROR) << "cannot write DICOM file to memory"; | 122 LOG(ERROR) << "cannot write DICOM file to memory"; |
123 rsp->DimseStatus = STATUS_STORE_Refused_OutOfResources; | 123 rsp->DimseStatus = STATUS_STORE_Refused_OutOfResources; |
124 } | 124 } |
125 } | 125 } |