Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerToolbox.cpp @ 5048:22966345eaba
skip StorageCache when verifying md5 or when re-compressing attachments
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 29 Jun 2022 13:15:20 +0200 |
parents | b1fe3b44ce1d |
children | dd085f7e7e71 |
comparison
equal
deleted
inserted
replaced
5047:207f259c41c5 | 5048:22966345eaba |
---|---|
142 } | 142 } |
143 | 143 |
144 try | 144 try |
145 { | 145 { |
146 // Read and parse the content of the DICOM file | 146 // Read and parse the content of the DICOM file |
147 StorageCache cache; // we create a temporary cache for this operation (required by the StorageAccessor) | 147 StorageAccessor accessor(storageArea, NULL); // no cache |
148 StorageAccessor accessor(storageArea, cache); | |
149 | 148 |
150 std::string content; | 149 std::string content; |
151 accessor.Read(content, attachment); | 150 accessor.Read(content, attachment); |
152 | 151 |
153 ParsedDicomFile dicom(content); | 152 ParsedDicomFile dicom(content); |