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

Can't read unknown Tag #115

Closed
mightymouse2045 opened this issue Apr 26, 2021 · 3 comments
Closed

Can't read unknown Tag #115

mightymouse2045 opened this issue Apr 26, 2021 · 3 comments
Labels
duplicate This is a duplicate of an existing issue question

Comments

@mightymouse2045
Copy link

(1001,041e) ST [Date: 20210212025552[^]Date: 20210217033201[^]Date: 20210226002420[^]] # 70, 1 Unknown Tag & Data

Attempting to read in rust fails with:
Error: ParseMetaDataSet { source: UndefinedValueLength { tag: Tag(0x0022, 0x0016), backtrace: Backtrace(()) } }

dcmtk - dcmdump works fine to read the above tag which is where the line came from above.

@mightymouse2045
Copy link
Author

Update - sorry this is actually related to the DICOM files being used. Depending on the file I get the above error unrelated to the tag I specified in the above comment.

Also I get a failed to fill whole buffer error on others, but have no problem reading the same files with dcmtk dcmdump

@Enet4
Copy link
Owner

Enet4 commented Apr 26, 2021

Thank you for reporting. Could you provide a minimal example of the code which you were trying?

Still, I suspect that the problem is equivalent to #83. open_file can only open complete DICOM files with preamble and file meta group. In order to read a simple DICOM data set, you would need to use one of the InMemDicomObject::read_dataset functions, which are available upstream (#84), but not released yet released in 0.4.0.

@Enet4 Enet4 added the question label Apr 26, 2021
@Enet4 Enet4 added the duplicate This is a duplicate of an existing issue label Jul 22, 2021
@Enet4
Copy link
Owner

Enet4 commented Jul 22, 2021

Closing as a duplicate of #83, as it is very likely that caused by an attempt to read a file without a preamble, which in this case needs to be done with separate methods. Please file a new issue with a concrete example if the problem persists. See also #50.

@Enet4 Enet4 closed this as completed Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This is a duplicate of an existing issue question
Projects
None yet
Development

No branches or pull requests

2 participants