修改下载影像处理sr ot 多帧处理失败
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0cb2015aae
commit
7fa043793e
|
|
@ -1125,7 +1125,20 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
||||||
Log.Logger.Warning($"处理多帧合并{instance.Path}失败: {ex.Message}");
|
Log.Logger.Warning($"处理多帧合并{instance.Path}失败,以原始文件下载: {ex.Message}");
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
await using var source2 = await _oSSService.GetStreamFromOSSAsync(instance.Path);
|
||||||
|
|
||||||
|
await source2.CopyToAsync(entryStream, 32 * 1024, abortToken);
|
||||||
|
}
|
||||||
|
catch (Exception ex2)
|
||||||
|
{
|
||||||
|
|
||||||
|
Log.Logger.Warning($"原始文件下载{instance.Path}失败: {ex2.Message}");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
@ -1857,7 +1870,7 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
public async Task<IActionResult> VisitImageDownload([FromServices] IPatientService _patientService, [FromServices] IOSSService _oSSService,
|
public async Task<IActionResult> VisitImageDownload([FromServices] IPatientService _patientService, [FromServices] IOSSService _oSSService,
|
||||||
[FromServices] IHubContext<DownloadHub, IDownloadClient> _downLoadHub,
|
[FromServices] IHubContext<DownloadHub, IDownloadClient> _downLoadHub,
|
||||||
[FromServices] IRepository<Trial> _trialRepository,
|
[FromServices] IRepository<Trial> _trialRepository,
|
||||||
[FromQuery] VisitImageDownloadCommand inCommand)
|
[FromQuery] VisitImageDownloadCommand inCommand)
|
||||||
{
|
{
|
||||||
var rusult = await _patientService.GetDownloadSubjectVisitStudyInfo(inCommand);
|
var rusult = await _patientService.GetDownloadSubjectVisitStudyInfo(inCommand);
|
||||||
|
|
||||||
|
|
@ -2030,6 +2043,18 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
{
|
{
|
||||||
|
|
||||||
Log.Logger.Warning($"处理多帧合并{instance.Path}失败: {ex.Message}");
|
Log.Logger.Warning($"处理多帧合并{instance.Path}失败: {ex.Message}");
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
await using var source2 = await _oSSService.GetStreamFromOSSAsync(instance.Path);
|
||||||
|
|
||||||
|
await source2.CopyToAsync(entryStream, 32 * 1024, abortToken);
|
||||||
|
}
|
||||||
|
catch (Exception ex2)
|
||||||
|
{
|
||||||
|
|
||||||
|
Log.Logger.Warning($"原始文件下载{instance.Path}失败: {ex2.Message}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue