Hi all,
I'm trying to query and retrieve images from my local dcm4chee instance using the DcmQR tool java code, if i try the commandline tool it works. But i'm trying to use the tool in my own java code, i've the following code:
public void export() {
DcmQR dcmQr = new DcmQR("DCMQR");
dcmQr.setCalling("DCMQR");
dcmQr.setCalledAET("DCM4CHEE", true);
dcmQr.setRemoteHost("localhost");
dcmQr.setRemotePort(11112);
dcmQr.setStoreDestination("E:\\Test\\");
dcmQr.setCFind(true);
dcmQr.setCGet(true);
dcmQr.setQueryLevel(QueryRetrieveLevel.STUDY);
dcmQr.configureTransferCapability(true);
List result = null;
try {
dcmQr.start();
dcmQr.open();
result = dcmQr.query();
dcmQr.get(result);
dcmQr.close();
} catch (Exception ex) {
ex.printStackTrace();
} finally {
dcmQr.stop();
}
}
If i execute this code my log shows the following:
result (0008,0052) CS #6 [STUDY] Query/Retrieve Level
(0008,0054) AE #8 [DCM4CHEE] Retrieve AE Title
(0008,0056) CS #6 [ONLINE] Instance Availability
(0088,0130) SH #0 [] Storage Media File-set ID
(0088,0140) UI #0 [] Storage Media File-set UID
It seems the query has succeeded but the cget doesn't get executed, does anyone have an idea on what's going wrong?
Thanks,
Martin