Hi,We have some data sets that storescu tries to convert to JPEG lossless as requested by the receiver, but fails due to some private sequence. The private sequence contains all tags needed to calculate the pixel data length, and a pixel data tag which contains much less data then expected, so the encoder fails with the message: True lossless encoder: Cannot change representation, not enough data.I have no idea what this sequence contains, but my question is: is it correct that private sequences are encoded the same way as non-private sequences in this case? I guess it is so, and the data in question may be considered invalid, but I'm not sure I understand the standard correctly in this case.

posted into "DCMTK General" it is more on-topic (I felt free to move it here) .

Private sequences usually follow the rules of non-private sequences in terms of encoding. However, as far as I understand one should never use the Pixel Data element at all in private sequence's items, as part 5 of the standard says: