DicomInputStream dis = new DicomInputStream(path.toFile());
Attributes meta = dis.getFileMetaInformation();
InputStreamDataWriter dw = new InputStreamDataWriter(dis);
assoc.cstore(meta.getString(0x00020002), meta.getString(0x00020003),
0x0000, dw, meta.getString(0x00020010), new DimseRSPHandler(assoc.nextMessageID()) { ...
Attributes dcmObj = dis.readItem(); // I guess that's the right method for this purpose
dcmObj = DICOMReconc.reconcile(dcmObj); // Just some custom implementation to change some tags
Hello, you can do it this way
Attributes data = in.readDataset(-1,-1);
.
.
.
association.cstore(cuid, iuid, priority, new DataWriterAdapter(data), ts, rspHandlerFactory.createDimseRSPHandler(f));