1

How to check if file is a dicomfile?

user449921
  • 241
  • 1
  • 4
  • 14

1 Answers1

2

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.

Timo Willemsen
  • 8,717
  • 9
  • 51
  • 82