I'm new in dcmtk world, please excuse my misunderstandings and approximations.
For some reasons I'm dealing with a server system on which DICOM files are sent before transmission to PACS system. I try to develop a robust solution to manage all documents in different situations. One of these situation involves corrupted files. Since the PACS service doesn't accept these particular files I try to detect them. For now I'm working on Unix script solution and detect them with the command dcmdump dicom_file. According to readings (on forum etc.) it seems to be the most accurate way to do that (and dcmftest passes).
This correctly sends me information about the problem:
Code: Select all
$ dcmdump dicom_file
E: DcmElement: PixelData (7fe0,0010) larger (17039360) than remaining bytes in file
E: dcmdump: I/O suspension or premature end of stream: reading file: dicom_file
Code: Select all
$ dcmdump dicom_file > .log
$ dcmdump dicom_file | grep 'E:'
My questions are: why is it not possible to perform the redictions of the outputs in such situation? Is dcmdump really the most appropriate solution ? (If not, what is the solution according to you).
Thanks a lot.