I have to pick all valid DICOM Files from folder. I can recursively pick all the files from the folder which have *.DCM extension. But any file with *.DCM also picked up and such file is not valid DICOM File.
What is best way.
I thought of reading few byte of the file and validating.
Or
Any Other Method or any other EXEs we have which validates.
Thank you,
Harsha
Edit: Solution for the problem:
I finally used the dcmftest.exe for verification. Hope I am on right track.
-Harsha
Validating a DICOM file is not as easy task considering the different mandatory and optional tags present in different IODs. I think it is better to use an existing solution to do this. You can take a look at DCMCHECK from DCMTK to do this.