dcm4che3 java lib: Attributes.addAll method seems to lost multiple LO values

49 views
Skip to first unread message

Fabien Milachon

unread,
Aug 5, 2020, 1:52:53 PM8/5/20
to dcm...@googlegroups.com
ref: https://stackoverflow.com/q/63269682/5704707

Hi people,

this question is coming from the bug found in this post : https://stackoverflow.com/q/63174818/5704707

With dcm4che3 in java, I read my attributes of dcm file like that: 

    public Attributes readDicomAttributes(MultipartFile file) throws IOException 
      {
        DicomInputStream dis = new DicomInputStream(file.getInputStream());
        Attributes dataSet = dis.readDataset(-1, Tag.PixelData);
        Attributes fmi = dis.readFileMetaInformation();
        dis.close();
    
        fmi.addAll(dataSet);
    
        return fmi;
      }

I have a private tag in my dicom wich is `LO` (long string) and multiple values: `0.626492\0.342747`

if I inspect my var dataSet, I can read in it `(0011,0013) LO [0.626492\0.342747] PrivateCreatorID`

If I inspect fmi at the end, I have `(0011,0013) LO [0.626492] PrivateCreatorID`

It seems the addAll function is messing. Have you another solution than 

    dataSet.addAll(fmi);
    return dataSet;

?

Thank you

Fabien Milachon

unread,
Aug 11, 2020, 12:48:32 PM8/11/20
to dcm4che
Is there a place to post issue for dcm4che ? 
Reply all
Reply to author
Forward
0 new messages