comparison OrthancServer/FromDcmtkBridge.cpp @ 1316:1c8dfedefefe

Fix anonymization generating non-portable DICOM files
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 12 Feb 2015 14:12:11 +0100
parents f796207e3df1
children 0649c5aef34a
comparison
equal deleted inserted replaced
1315:0c735fed8953 1316:1c8dfedefefe
694 E_EncodingType encodingType = /*opt_sequenceType*/ EET_ExplicitLength; 694 E_EncodingType encodingType = /*opt_sequenceType*/ EET_ExplicitLength;
695 695
696 // Create the meta-header information 696 // Create the meta-header information
697 DcmFileFormat ff(&dataSet); 697 DcmFileFormat ff(&dataSet);
698 ff.validateMetaInfo(xfer); 698 ff.validateMetaInfo(xfer);
699 ff.removeInvalidGroups();
699 700
700 // Create a memory buffer with the proper size 701 // Create a memory buffer with the proper size
701 uint32_t s = ff.calcElementLength(xfer, encodingType); 702 uint32_t s = ff.calcElementLength(xfer, encodingType);
702 buffer.resize(s); 703 buffer.resize(s);
703 DcmOutputBufferStream ob(&buffer[0], s); 704 DcmOutputBufferStream ob(&buffer[0], s);