Shawn
Shawn

Reputation: 29

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.

var image = new DicomImage(filePath);

if filePath is from local directory its working fine. if filePath is from server (like https://example.com/filepath.dcm), its throwing 'Dicom.DicomFileException' saying that specified path value is not correct. What is the right way to load DicomImage from server ??

Upvotes: 1

Views: 2025

Answers (1)

Markus Sabin
Markus Sabin

Reputation: 4013

AFAIK: Not at all. 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.

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). But in this case, your task is simply "downloading a file from an URL" and not related to DICOM at all. 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

Upvotes: 3

Related Questions