storescu send jpg with explicite little indian

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
monseurs
Posts: 7
Joined: Thu, 2011-07-07, 13:26
Contact:

storescu send jpg with explicite little indian

#1 Post by monseurs »

Hi I'm trying to send a embedded jpg file to our pacs.
using -xe network option.
It doesn't work, not able to convert dataset.

Any clues? Our pacs doesn't like compressed jpg. I did sent the file with Osirix to the pacs using Explicit Little Indian. That worked. But I would like to use storescu.exe to automate the process.

Rob

C:\dcmtk\bin>storescu -xe -v 192.168.110.227 104 124.503.dcm
I: checking input files ...
I: Requesting Association
I: Association Accepted (Max Send PDV: 16372)
I: Sending file: 124.503.dcm
I: Transfer Syntax: JPEGBaseline -> LittleEndianImplicit
I: Sending Store Request: MsgID 1, (SC)
XMIT: W: DIMSE Warning: (STORESCU,ANY-SCP): sendMessage: unable to convert datas
et from 'JPEG Baseline' transfer syntax to 'Little Endian Implicit'
E: Store Failed, file: 124.503.dcm:
E: 0006:020e DIMSE Failed to send message
E: Store SCU Failed: 0006:020e DIMSE Failed to send message
I: Aborting Association

omarelgazzar
Posts: 101
Joined: Wed, 2009-07-08, 16:06
Location: Oldenburg, Germany

#2 Post by omarelgazzar »

Try to recompile storescu application source file with the ON_THE_FLY_COMPRESSION macro defined.

Code: Select all

#define ON_THE_FLY_COMPRESSION
This should allow compression on the fly before sending the file in case that the accepted transfer syntax is different from the actual transfer syntax of the file.

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

#3 Post by J. Riesmeier »

That's correct, storescu does not support the decompression of DICOM images - at least not officially. You could either run dcmdjpeg in order to decompress the image before sending it to the PACS or you could give the brand-new dcmsend a try:

Code: Select all

dcmsend --verbose --decompress-lossy 192.168.110.227 104 124.503.dcm
dcmsend is not yet part of the current snapshot, so you have to use the git repository in the meantime.

monseurs
Posts: 7
Joined: Thu, 2011-07-07, 13:26
Contact:

#4 Post by monseurs »

Hi Gents,

thanks for clarifying.
Would anyone of you be willing to "bake" me a windows 32 .exe?
I'm really not the compiling type.

In return, if you want me to test stuff I'd be happy to help out.


Regards, Rob

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

#5 Post by J. Riesmeier »

Compiling is not that complicated, but we could also make a Windows 32-bit binary of "dcmsend" available to you. Just send an email to dicom/at/offis/dot/de.

And, thank you for your kind offer. We would really appreciate if you could give us some feedback on this new tool :)

Post Reply

Who is online

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