Weasis 4-6-1 and MAGNETOM studies

44 views
Skip to first unread message

Юрій Череднічок

unread,
Jul 9, 2025, 2:57:50 AM7/9/25
to dcm4che
Hi all!

Got a two studes from SIEMENS MAGNETOM.
When try open via Weasis got next error

08.07.2025 17:52:28.931 *ERROR* [Dicom Model-pool-2-thread-1] org.weasis.dicom.codec.DicomMediaIO: Cannot read DICOM:java.io.EOFException: null
at org.dcm4che3.util.StreamUtils.readFully(StreamUtils.java:69)
at org.dcm4che3.io.DicomInputStream.readFully(DicomInputStream.java:540)
at org.dcm4che3.io.DicomInputStream.readHeader(DicomInputStream.java:573)

When try open these studeis via MicroDicom - it's open normally

kirill zemskoff

unread,
Jul 9, 2025, 5:34:00 PM7/9/25
to dcm4che
Hi,
This is a normal JPEGLossless study:
2025-07-10_00-29-45.png

And this is yours:
2025-07-10_00-31-40.png

in python, I make corrections to such studies by adding lost bytes.

среда, 9 июля 2025 г. в 09:57:50 UTC+3, Юрій Череднічок:

Nicolas Roduit

unread,
Jul 10, 2025, 8:20:39 AM7/10/25
to dcm4che
Those files are corrupted and cannot be read with most DICOM tools, with dcmtk:
dcmdump 34447327
W: DcmSequenceOfItems: Reached end of stream before the end of sequence PixelData (7fe0,0010)
E: dcmdump: Sequence Delimitation Item missing: reading file: 34447327

kirill zemskoff

unread,
Jul 11, 2025, 2:46:30 AM7/11/25
to dcm4che
it is easy to fix this error by adding the missing byte sequence to the end of the file.
I've seen this error several times on SIEMENS MAGNETOM. It may be related to a specific firmware version.

четверг, 10 июля 2025 г. в 15:20:39 UTC+3, Nicolas Roduit:
Reply all
Reply to author
Forward
0 new messages