File dcmFile = new File(finalFile);final DicomInputStream in = new DicomInputStream(dcmFile);DicomElement e = null;DicomObject o = in.readDicomObject(); e = o.get(0x00080000); if (e!=null){ o.remove(0x00080000); System.out.println("(0008,0000) has been deleted");}dcmFile = new File(finalFile);FileOutputStream fos = new FileOutputStream(f);
BufferedOutputStream bos = new BufferedOutputStream(fos);DicomOutputStream dos = new DicomOutputStream(bos);dos.writeDicomFile(o);dos.close();in.close();
(0008,0000) UL 310 # 4, 1 IdentifyingGroupLength
(0018,0000) UL 8 # 4, 1 AcquisitionGroupLength
(0020,0000) UL 176 # 4, 1 ImageGroupLength
(0028,0000) UL 190 # 4, 1 ImagePresentationGroupLength