Closed pattersp closed 10 months ago
Hi thanks for reaching out! I think it is indeed the case that ValueLength needs to be set, in DICOM I think ValueLength needs to be set on all Elements (and even undefined value length is a specific value, as you see here). we can check the spec, but iirc a PixelData with undefined length is one of the main things indicating the DICOM is going to be encapsulated vs. native data.
I am trying to write a dicom dataset that holds encapsulated pixel data. Example program:
When I run this program as-is, I get the following error (unless I uncomment the line that sets VLUndefinedLength):
Is this working as intended? Is it expected that I need to explicitly set this length field?
Thanks!