DcmQR cget

413 views
Skip to first unread message

martinvdlubbe

unread,
Feb 7, 2014, 10:51:53 AM2/7/14
to dcm...@googlegroups.com
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

qwe

unread,
Feb 26, 2014, 6:28:52 AM2/26/14
to dcm...@googlegroups.com

I've got the same problem trying to connect to Conquest pacs - any idea wht is wrong

Prakash Jayaraman

unread,
Feb 27, 2014, 4:39:43 AM2/27/14
to dcm...@googlegroups.com
C-GET support may not be available in Conquest PACS. Try with C-Move first.


--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at http://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/groups/opt_out.

qwe

unread,
Feb 27, 2014, 5:27:24 AM2/27/14
to dcm...@googlegroups.com
Thanks for your answer but can you send sample code....???
qwe
Reply all
Reply to author
Forward
0 new messages