user449921
user449921

Reputation: 251

clearcanvas if file is a dicomfile

How to check if file is a dicomfile?

Upvotes: 1

Views: 463

Answers (1)

Timo Willemsen
Timo Willemsen

Reputation: 8857

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.

Upvotes: 2

Related Questions