comparison OrthancServer/Sources/ResourceFinder.cpp @ 5852:ea547160f27e find-refactoring

StatelessDatabaseOperations: reimplementing LookupAttachment()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Oct 2024 15:57:53 +0000
parents b24b61331566
children aeb9f63923b1
comparison
equal deleted inserted replaced
5851:6a4e47163b3c 5852:ea547160f27e
324 case ResourceType_Instance: 324 case ResourceType_Instance:
325 { 325 {
326 if (responseContent_ & ResponseContentFlags_AttachmentsLegacy) 326 if (responseContent_ & ResponseContentFlags_AttachmentsLegacy)
327 { 327 {
328 FileInfo info; 328 FileInfo info;
329 if (resource.LookupAttachment(info, FileContentType_Dicom)) 329 int64_t revision;
330 if (resource.LookupAttachment(info, revision, FileContentType_Dicom))
330 { 331 {
331 target["FileSize"] = static_cast<Json::UInt64>(info.GetUncompressedSize()); 332 target["FileSize"] = static_cast<Json::UInt64>(info.GetUncompressedSize());
332 target["FileUuid"] = info.GetUuid(); 333 target["FileUuid"] = info.GetUuid();
333 } 334 }
334 else 335 else