Question

How to check if file is a dicomfile?

Was it helpful?

Solution

The Clearcanvas DicomFile.Load method throws an exception if the file is not a valid dicomfile. On the clearcanvas forums. I've found a similar topic. They are saying that if you ónly want to see if the file is a valid dicom file, you can add the following parameter to the DicomFile.Load method: DicomReadOptions.DoNotStorePixelDataInDataSet, this will speed it up a bit.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top