Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestApi.cpp @ 1005:84b6d7bca6db lua-scripting
refactoring of ServerContext::Store
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 08 Jul 2014 14:34:11 +0200 |
parents | 83622b0f544c |
children | 0332e6e8c679 |
comparison
equal
deleted
inserted
replaced
1004:a226e0959d8b | 1005:84b6d7bca6db |
---|---|
69 return; | 69 return; |
70 } | 70 } |
71 | 71 |
72 LOG(INFO) << "Receiving a DICOM file of " << postData.size() << " bytes through HTTP"; | 72 LOG(INFO) << "Receiving a DICOM file of " << postData.size() << " bytes through HTTP"; |
73 | 73 |
74 DicomInstanceToStore toStore; | |
75 toStore.SetBuffer(postData); | |
76 | |
74 std::string publicId; | 77 std::string publicId; |
75 StoreStatus status = context.Store(publicId, postData); | 78 StoreStatus status = context.Store(publicId, toStore); |
76 | 79 |
77 OrthancRestApi::GetApi(call).AnswerStoredInstance(call, publicId, status); | 80 OrthancRestApi::GetApi(call).AnswerStoredInstance(call, publicId, status); |
78 } | 81 } |
79 | 82 |
80 | 83 |