DcmSCU::sendSTORERequest fails because unknown original xfer

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
jsyri
Posts: 4
Joined: Tue, 2012-09-04, 13:17

DcmSCU::sendSTORERequest fails because unknown original xfer

#1 Post by jsyri »

I need to load jpg files and send them to the remote server. I can convert image to the dicom format using something like:

Code: Select all

Image2Dcm i2d;
I2DOutputPlug *outPlug = new I2DOutputPlugSC();
I2DImgSource *inputPlug = new I2DJpegSource();
E_TransferSyntax writeXfer =  EXS_JPEGProcess1TransferSyntax;
inputPlug->setImageFile("filename");
DcmDataset *dataset = NULL;
OFCondition result = i2d.convert(inputPlug, outPlug, dataset, writeXfer);
When i try to send resulting dataset to the server using sendStoreRequest, call returns EC_IllegalParameter. This seems to be because
sendStoreRequest tries to get to use getOriginalXfer() to get original transfer transfer syntax (At DcmSCU::getDatasetInfo). As dataset has not been read from anywhere, original transfer syntax seems to be unknown, which results call failing.

Is there a workaround available for this case?

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

Re: DcmSCU::sendSTORERequest fails because unknown original

#2 Post by J. Riesmeier »

In fact, this issue should have been fixed after the release of DCMTK 3.6.0. So, you should try with the latest snapshot or development version (git).

jsyri
Posts: 4
Joined: Tue, 2012-09-04, 13:17

Re: DcmSCU::sendSTORERequest fails because unknown original

#3 Post by jsyri »

Thanks for the info. I'll test it.

jsyri
Posts: 4
Joined: Tue, 2012-09-04, 13:17

Re: DcmSCU::sendSTORERequest fails because unknown original

#4 Post by jsyri »

I updated to the latest snapshot (3.6.1_20120831) and that seems to solve the issue with the transfer syntax. Unfortunately it seems that the image conversion code above doesn't work anymore (EXS_JPEGProcess1TransferSyntax was renamed to EXS_JPEGProcess1) . No error is returned, but resulting dataset seems to be empty. I'll examine this issue more closely later, but if meantime someone happens to know about this issue, I'd be grateful for any pointers to the right direction.

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

Re: DcmSCU::sendSTORERequest fails because unknown original

#5 Post by J. Riesmeier »

The renaming has been done before with this commit: http://git.dcmtk.org/web?p=dcmtk.git;a= ... d8c90dcd25

jsyri
Posts: 4
Joined: Tue, 2012-09-04, 13:17

Re: DcmSCU::sendSTORERequest fails because unknown original

#6 Post by jsyri »

Ok the remaining problem turned out to be at the server side configuration. Everything seems to work now. Thanks for the help.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest