DcmSCU::sendSTORERequest fails

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
kjeras
Posts: 10
Joined: Wed, 2011-06-01, 10:20

DcmSCU::sendSTORERequest fails

#1 Post by kjeras »

Hello,
We have a problem when calling DcmSCU::sendSTORERequest without dicomFile but with DcmDataset.
Our application is built on DCMTK 3.6.0 and it tries to send a DICOM image to STORESCP.EXE (also DCMTK 3.6.0) acting a server.
We have followed the sample code available on Offis site.

Call number 1 below works OK. It contains a dataSet and a DICOM file (containing this dataSet)
Call number 2 below fails. It only contains the dataSet. This is what we would like to get working

Is this perhaps a known problem in DCMTK, or are we doing something wrong?

1) scu.sendSTORERequest(presID, oFileName, dset, empty, empty, statusCode); // OK if valid DICOM file in oFileName
2) scu.sendSTORERequest(presID, 0, dset, empty, empty, statusCode); // Produces the error below

Log on client side shows:
I: Association Accepted (Max Send PDV: 16372)
WARNING: OFString constructed from NULL, this is deprecated.
E: Cannot send DICOM file, missing information:
E: SOP Class UID: 1.2.840.10008.5.1.4.1.1.2
E: SOP Instance UID: 1.2.840.113854.1267331176.6748.1355839736.624
E: Transfersyntax: Unknown Transfer Syntax
I: Aborting Association
Unable to negotiate association: Illegal parameter
Press any key to continue . . .

J. Riesmeier
DCMTK Developer
Posts: 2504
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: DcmSCU::sendSTORERequest fails

#2 Post by J. Riesmeier »

I guess this issue has been fixed with this commit: http://git.dcmtk.org/web?p=dcmtk.git;a= ... d7917c0793

You could/should also test the current DCMTK snapshot ...

kjeras
Posts: 10
Joined: Wed, 2011-06-01, 10:20

Re: DcmSCU::sendSTORERequest fails

#3 Post by kjeras »

Thank you, this fixed the problem.
I downloaded scu.h and scu.cc via the git link and rebuilt dcmtk-3.6.0 with them.
Then both 1) and 2) calls of sendSTORERequest works.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest