From ba12a2977bf2698f86408b450e5528c6ad6b88fd Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Wed, 3 Sep 2025 16:32:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=98=E5=82=A8=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=AD=98=E5=82=A8=E9=9D=9E=E5=B0=81=E8=A3=85=E7=9A=84?= =?UTF-8?q?=E5=BD=B1=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRC.Core.SCP/Service/CStoreSCPService.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/IRC.Core.SCP/Service/CStoreSCPService.cs b/IRC.Core.SCP/Service/CStoreSCPService.cs index 38d8892bd..7f55d3ed3 100644 --- a/IRC.Core.SCP/Service/CStoreSCPService.cs +++ b/IRC.Core.SCP/Service/CStoreSCPService.cs @@ -364,15 +364,16 @@ namespace IRaCIS.Core.SCP.Service // 替换原 PixelData dicomFile.Dataset.AddOrUpdate(newFragments); + + + // 重新保存 dicom 到流 + ms.SetLength(0); + dicomFile.Save(ms); } - // 重新保存 dicom 到流 - ms.SetLength(0); - dicomFile.Save(ms); + ms.Position = 0; - - #endregion