Sending dicom files using dcmtk c-store returning JPEG lossless error.

466 views
Skip to first unread message

Wisdom James Murombo

unread,
Feb 5, 2022, 1:35:08 PM2/5/22
to Fellow Oak DICOM
Trying to send dicom files using the dcmtk scu command but its returning the error below:


sendMessage: unable to convert dataset from 'JPEG Lossless, Non-hierarchical, Process 14' transfer syntax to 'Little Endian Explicit

How can I solve this? Thanks in advance.



Tried to use the storescp switch "+xa" (accept all supported transfer syntaxes) but nothing worked:

sudo storescp +xa 80 -v -aet TESTSCP  -od . --sort-on-study-uid st

Reinhard Gruber

unread,
Mar 30, 2022, 2:19:40 AM3/30/22
to Fellow Oak DICOM
This is an issue on dcmtk.

So from your question i assume that you are running your own StoreSCP using fo-dicom and try to send some images with dcmtk scu to your server.
When a SCU starts an association to a SCP, then the SCU has to send some presentation contexts. Those describe what the SCU wants to do. In CStore the SCU has to send the types of images and the transersyntaxex (aka compressions) that the SCU could send. Then the SCP returns the presentation contexts that the server accepts. E.g. in CStore the SCP returns, which transfersyntaxes the server allows. Then it's up to the SCU do deal with that.
DICOM defines, that the SCU may ask to send the image in any compression that the SCU likes PLUS the SCU always has to offer LittleEndianImplicit as a default uncompressed transfersyntax. If the server does not support compression/transcoding at all, then the server can always choose that uncompressed syntax. This seems to be the case here on your side. But then it's the SCU's job to decompress the image and send as uncompressed format.

So you have three possibilities:
- ask in Dcmtk forums, how to make the store scu deal with compressions. Because from DICOM-standard-view, it's the SCUs job to do the decompression
- if compression is not the thing you want to deal about but you only want to test your c-store features, then just use other DICOM-files to send. Choose files that are stored uncompressed on your harddisk.
- Or make your CStoreSCP handle compressed data, by configuring some TranscodeManager and configuring your OnAssociationRequest method in StoreSCP-service

geert.e.va...@gmail.com

unread,
Mar 30, 2022, 7:06:08 AM3/30/22
to Fellow Oak DICOM
The message is coming from the dcmtk scu side. Try adding -xs to the storescu command.
Reply all
Reply to author
Forward
0 new messages