Storescu With TLS

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
niirdan
Posts: 24
Joined: Wed, 2023-02-22, 13:13

Storescu With TLS

#1 Post by niirdan »

Hey Friends , Im Trying to Send Dicom files from a Directory to an Remote Pacs With TLS .
I Ran the command exactly as described but I always get --enable-tls is unknown , any idea's ?
This is how I Ran it
storescu --enable-tls /path/to/keyfile.pem /path/to/certfile.pem <hostname> <port> /path/to/dicomfile.dcm

Result:

Code: Select all

$dcmtk: storescu v3.6.7 2022-04-22 $

storescu: DICOM storage (C-STORE) SCU
error: Unknown option --enable-tls

Michael Onken
DCMTK Developer
Posts: 2067
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Storescu With TLS

#2 Post by Michael Onken »

Hi,

make sure you download the DCMTK binaries that include the SSL extensions, see DCMTK 3.6.7 - OpenSSL based security extensions on the download page.

Best regards,
Michael

niirdan
Posts: 24
Joined: Wed, 2023-02-22, 13:13

Re: Storescu With TLS

#3 Post by niirdan »

Thanks Michael it Worked!

Now I Have another miss understanding .

I'm using storescu to transfer dicom files from a directory to another remotely storeScp Pacs server .
While the transaction ,
Im Getting this Error in Storescu console :

Code: Select all

W: DIMSE Warning: (STORESCU,ANY-SCP): sendMessage: unable to convert dataset from 'JPEG Baseline' transfer syntax to 'Little Endian Explicit'
E: Store Failed, file: C:/Users/niird/OneDrive/Desktop/dicom_files/324462431\1.2.276.0.26.1.1.1.2.2020.375.28785.3792640.180224000:
E: 0006:020e DIMSE Failed to send message
E: Store SCU Failed: 0006:020e DIMSE Failed to send message
as a little research this dicom files that fails are imgs/cines . Does the storescu know how to transfer these kind of files ?
This is the Last Few Lines From the StoreSCP Console in the Remote Pacs server:

Code: Select all

D: ======================= END DIMSE MESSAGE =======================
D: DcmDataset::read() TransferSyntax="Little Endian Explicit"
I: storing DICOM file: /home/dan/dicom_files/US.1.2.276.0.26.1.1.1.2.2020.375.28781.1056544.12451840
D: DcmFileFormat::checkMetaHeaderValue() Version of MetaHeader is ok: 0x0001
D: DcmFileFormat::checkMetaHeaderValue() use SOPClassUID [1.2.840.10008.5.1.4.1.1.6.1] from Dataset
D: DcmFileFormat::checkMetaHeaderValue() use SOPInstanceUID [1.2.276.0.26.1.1.1.2.2020.375.28781.1056544.12451840] from Dataset
D: DcmFileFormat::checkMetaHeaderValue() use new TransferSyntaxUID [Little Endian Explicit] on writing following Dataset
D: DcmFileFormat::validateMetaInfo() found 8 Elements in DcmMetaInfo 'metinf'
I: Association Aborted

Michael Onken
DCMTK Developer
Posts: 2067
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Storescu With TLS

#4 Post by Michael Onken »

Hi,

storescu cannot (de)compress images and per default only supports uncompressed transmission. Try option

Code: Select all

--propose-jpeg8
to also propose JPEG Baseline, or

Code: Select all

--required
to propose whatever is required if you also have files that use a different compression scheme than JPEG Baseline. If you want custom support for specific transfer syntaxes, you can also write a configuration file for storescu and use it with option

Code: Select all

-xf <config_file>
; a sample configuration is shipped with DCMTK ("storescu.cfg").

If you don't want to use TLS, you may also use the tool dcmsend which is also able to automatically (de)compress files when desired by the server.

Best regards,
Michael

niirdan
Posts: 24
Joined: Wed, 2023-02-22, 13:13

Re: Storescu With TLS

#5 Post by niirdan »

Thanks Michael For You Continuously Help
This is Very appreciated!

So as far as I Understand Store-scu isn't compatible with decompressing jpeg files , and transferring them .
But does the Store-SCP know how to handle those files ?
I am Asking because if I Will Use any kind of Modality - US for example , it will handle this type of files ?

Michael Onken
DCMTK Developer
Posts: 2067
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Storescu With TLS

#6 Post by Michael Onken »

Analogous to storescu's "--propose-..." flags, storescp has some "--prefer-..." flags, e.g.

Code: Select all

--prefer-jpeg8
. However, to be sure storescp "eats" everything just use

Code: Select all

--accept-all
flag and you should be able to accept any transfer syntax.

BR Michael

niirdan
Posts: 24
Joined: Wed, 2023-02-22, 13:13

Re: Storescu With TLS

#7 Post by niirdan »

Thanks Michael ! , After adding --accept-all to my storescp
Everything Transferred Successfully !
Thanks again :wink:

Post Reply

Who is online

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