-
Notifications
You must be signed in to change notification settings - Fork 113
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
Changing instance UID corrupts file, Invalid DICOM file, expected header is missing #315
Comments
Thanks for reporting this. That's definitely a use case we want to make sure works. From what I can see the Line 201 in 914b3dc
But it should have been written out by Lines 20 to 24 in 914b3dc
Could you look at, for example, this test and see what's different from your case? If needed could you make a PR for this use case in the form of a test that could be used to document this use case and confirm that it's (ultimately) fixed. |
Thanks for the quick reply. I'll work on a test. Also, I noticed that when overriding the UID given the example provided, PixelData is lost. Is there a way for me to change the UID and retain PixelData? |
PixelData should not be lost. Did you make a simple test case to illustrate what you are doing? |
@EastLight0 Thanks for reporting. Please make a test that demonstrates the issue following the example of the other tests in the repo. |
A lot of this was taken from this example: https://github.com/dcmjs-org/dcmjs/blob/add-commander/examples/nodejs/readwrite.js
I just need to be able to set the UID and generate new binary data. Code below is making sure data held in memory has changed.
To reproduce:
What I would expect:
What I see:
The text was updated successfully, but these errors were encountered: