简体   繁体   English

如何从服务器加载Dicom图像(路径包含https://)

[英]How to load Dicom image from server (path contains https://)

How to load Dicom image from server (path contains https://) Am using fo-Diocm library. 如何从服务器加载Dicom图像(路径包含https://)使用fo-Diocm库。

var image = new DicomImage(filePath);

if filePath is from local directory its working fine. 如果filePath来自本地目录,它的工作正常。 if filePath is from server (like https://example.com/filepath.dcm ), its throwing 'Dicom.DicomFileException' saying that specified path value is not correct. 如果filePath来自服务器(如https://example.com/filepath.dcm ),则抛出'Dicom.DicomFileException'表示指定的路径值不正确。 What is the right way to load DicomImage from server ?? 从服务器加载DicomImage的正确方法是什么?

AFAIK: Not at all. AFAIK:完全没有。 Obtaining DICOM Files through Web API is referred to as WADO (Web Access to DICOM Objects), and there is an open feature request in fo-dicom to support this, but it has been assigned quite a high priority . 通过Web API获取DICOM文件称为WADO(对DICOM对象的Web访问),并且有一个开放的功能请求支持这一点,但它已被赋予相当高的优先级

However, the URL https://example.com/filepath.dcm does not adhere to WADO encoding, so maybe you cannot use a DICOM communication protocol to obtain the image (or you do not want to). 但是,URL https://example.com/filepath.dcm不符合WADO编码,因此您可能无法使用DICOM通信协议来获取图像(或者您不希望)。 But in this case, your task is simply "downloading a file from an URL" and not related to DICOM at all. 但在这种情况下,您的任务只是“从URL下载文件”而根本与DICOM无关。 After the download is completed, you have it stored locally, and can go on with local file access as you are used to. 下载完成后,您将其存储在本地,并可以像以前一样继续使用本地文件访问。

The "missing link": How to download a file from an URL “缺失的链接”: 如何从URL下载文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM