Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readDataset() throw exception #1356

Open
hevenwus opened this issue Oct 17, 2023 · 0 comments
Open

readDataset() throw exception #1356

hevenwus opened this issue Oct 17, 2023 · 0 comments

Comments

@hevenwus
Copy link

hevenwus commented Oct 17, 2023

with version 5.30.0 read dicom file throw exception

The code is as follows.

File source = new File("D:\\test.dcm");
inputStream = new DicomInputStream(source);
Attributes dataset = inputStream.readDataset();

readDataset() throw exception:
WARN --- [main]org.dcm4che3.io.DicomInputStream : Unrecognized VR code: 0000H for (0000,0000) - treat as UL
WARN --- [main]org.dcm4che3.io.DicomInputStream : Unrecognized VR code: 0000H for (0000,0000) - treat as UL
java.io.EOFException
at org.dcm4che3.util.StreamUtils.readFully(StreamUtils.java:74)
at org.dcm4che3.io.DicomInputStream.readFully(DicomInputStream.java:393)
at org.dcm4che3.io.DicomInputStream.readHeader(DicomInputStream.java:426)
at org.dcm4che3.io.DicomInputStream.readAttributes(DicomInputStream.java:557)
at org.dcm4che3.io.DicomInputStream.readDataset(DicomInputStream.java:503)
at org.dcm4che3.io.DicomInputStream.readDataset(DicomInputStream.java:487)

I found a lot of empty characters added to the end of the file.

04f15678b3787775d9c980ff663bf88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant