From 6e5e49d32208c456fc067947e0f319425b4c85c9 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 25 Dec 2025 15:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=89=E4=BA=9B=E5=BD=B1=E5=93=8D=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=EF=BC=8C=E9=9C=80=E8=A6=81=E5=AE=8C=E6=95=B4=E7=9A=84?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/TestService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/IRaCIS.Core.Application/TestService.cs b/IRaCIS.Core.Application/TestService.cs index ddc54ae51..9c061d9cb 100644 --- a/IRaCIS.Core.Application/TestService.cs +++ b/IRaCIS.Core.Application/TestService.cs @@ -94,6 +94,14 @@ namespace IRaCIS.Core.Application.Service { var stream = await _oSSService.GetStreamFromOSSAsync(item.Path); + if (!stream.CanSeek) + { + var ms = new MemoryStream(); + await stream.CopyToAsync(ms); + ms.Position = 0; + stream = ms; + } + var dicomFile = DicomFile.Open(stream);