Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestApi.cpp @ 3814:023b2a9f3aa1 transcoding
new enum: StoreInstanceMode
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Apr 2020 17:35:44 +0200 |
parents | 2a170a8f1faf |
children | 44bfcfdf42e8 |
comparison
equal
deleted
inserted
replaced
3813:aaaa442bfe39 | 3814:023b2a9f3aa1 |
---|---|
137 DicomInstanceToStore toStore; | 137 DicomInstanceToStore toStore; |
138 toStore.SetOrigin(DicomInstanceOrigin::FromRest(call)); | 138 toStore.SetOrigin(DicomInstanceOrigin::FromRest(call)); |
139 toStore.SetBuffer(dicom); | 139 toStore.SetBuffer(dicom); |
140 | 140 |
141 std::string publicId; | 141 std::string publicId; |
142 StoreStatus status = context.Store(publicId, toStore); | 142 StoreStatus status = context.Store(publicId, toStore, StoreInstanceMode_Default); |
143 | 143 |
144 OrthancRestApi::GetApi(call).AnswerStoredInstance(call, toStore, status); | 144 OrthancRestApi::GetApi(call).AnswerStoredInstance(call, toStore, status); |
145 } | 145 } |
146 | 146 |
147 | 147 |