Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 5602:e4e7ca3d206e find-refactoring
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 May 2024 07:09:49 +0200 |
parents | 8796c100aaf8 |
children | 6e2dad336446 |
comparison
equal
deleted
inserted
replaced
5601:aafe402ec950 | 5602:e4e7ca3d206e |
---|---|
384 case ResourceType_Instance: | 384 case ResourceType_Instance: |
385 { | 385 { |
386 FileInfo info; | 386 FileInfo info; |
387 if (resource.LookupAttachment(info, FileContentType_Dicom)) | 387 if (resource.LookupAttachment(info, FileContentType_Dicom)) |
388 { | 388 { |
389 target["FileSize"] = info.GetUncompressedSize(); | 389 target["FileSize"] = static_cast<Json::UInt64>(info.GetUncompressedSize()); |
390 target["FileUuid"] = info.GetUuid(); | 390 target["FileUuid"] = info.GetUuid(); |
391 } | 391 } |
392 else | 392 else |
393 { | 393 { |
394 throw OrthancException(ErrorCode_InternalError); | 394 throw OrthancException(ErrorCode_InternalError); |