# HG changeset patch # User Alain Mazy # Date 1742227300 -3600 # Node ID 4ee84545fcbef957656ed134dc3cf65b8d4d7552 # Parent 1ee8049e8d00433cc38b3540faf3f45b211a2095 fix length of DICOM files received in 1.2.840.10008.1.2.1.99 transfer syntax diff -r 1ee8049e8d00 -r 4ee84545fcbe NEWS --- a/NEWS Fri Mar 14 18:31:21 2025 +0100 +++ b/NEWS Mon Mar 17 17:01:40 2025 +0100 @@ -24,7 +24,8 @@ https://discourse.orthanc-server.org/t/lastupdate-coherency/5524 * Recovered compatibility with Windows XP that was broken because of DCMTK 3.6.9 * Enabled support of the 1.2.840.10008.1.2.1.99 transfer syntax - (Deflated Explicit VR Little Endian) in static builds + (Deflated Explicit VR Little Endian) in static builds + fix length of saved files. + https://discourse.orthanc-server.org/t/transcoding-to-deflated-transfer-syntax-fails/5489 * Housekeeper plugin: - When encountering an error, the housekeeper now skips the resource and continues processing. * Orthanc Explorer: diff -r 1ee8049e8d00 -r 4ee84545fcbe OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp --- a/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp Fri Mar 14 18:31:21 2025 +0100 +++ b/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp Mon Mar 17 17:01:40 2025 +0100 @@ -1603,7 +1603,7 @@ // buffer if its size was overestimated by (*) ob.flush(); - size_t effectiveSize = static_cast(ob.tell()); + size_t effectiveSize = static_cast(ob.filled()); if (effectiveSize < buffer.size()) { buffer.resize(effectiveSize);