dcm4chee-arc-light supported the Transfer syntax

386 views
Skip to first unread message

Amms

unread,
Sep 6, 2023, 10:50:18 AM9/6/23
to dcm4che
Hi,

Does the dcm4chee-arc-light support the Transfer syntax? "1.2.840.10008.1.2.4.102"  that represents SOPUID : Video Endoscopic Image - 1.2.840.10008.5.1.4.1.1.77.1.1.1 ? 
Any help or suggestions are appreciated.

Thanks in Advance.

Gunter Zeilinger

unread,
Sep 6, 2023, 11:26:41 AM9/6/23
to dcm4che

Amms

unread,
Sep 7, 2023, 5:22:16 AM9/7/23
to dcm4che
Thank you for your fast response.

 How to transfer dicom(.dcm) file with transfer syntax   1.2.840.10008.1.2.4.102 and  SOPUID  1.2.840.10008.5.1.4.1.1.77.1.1.1 to DCM4CHEE (dcm4chee-arc-light-5.26.0). I tried using dcmsend but failed to transfer. Is there any configuration to upload .dcm file using dcm4chee-arc/ui2 or using curl command?


Amms

unread,
Sep 7, 2023, 8:03:32 PM9/7/23
to dcm4che
I tried using below curl command:

curl -X POST "http://ip:port/dcm4chee-arc/aets/RPACS/rs/studies/1.3.12.2.1107.5.1.4.76024.30000022102604252883100000028" -H "Authorization:Bearer $TOKEN" -H "Content-Type: application/dicom" --data-binary "PathTo/1.2.276.0.67.5.207653496944.20230708173249913.6.dcm"

But failed. Is there any mistake in the curl command. Please help

Amms

unread,
Sep 8, 2023, 3:59:33 AM9/8/23
to dcm4che
The above curl command results in an HTTP status code of 415 indicates that the server refuses to accept the request. How to fix this issue?

Gunter Zeilinger

unread,
Sep 11, 2023, 6:53:45 AM9/11/23
to dcm4che
Not reproducible:
$ dcmdump /tmp/sample-mp4-file-small.dcm | head
0: [0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
132: (0002,0000) UL #4 [184] FileMetaInformationGroupLength
144: (0002,0001) OB #2 [0\1] FileMetaInformationVersion
158: (0002,0002) UI #32 [1.2.840.10008.5.1.4.1.1.77.1.1.1] MediaStorageSOPClas
198: (0002,0003) UI #44 [2.25.96419567555371593278345484064824299176] MediaSto
250: (0002,0010) UI #24 [1.2.840.10008.1.2.4.102] TransferSyntaxUID
282: (0002,0012) UI #16 [1.2.40.0.13.1.3] ImplementationClassUID
306: (0002,0013) SH #14 [dcm4che-5.31.1] ImplementationVersionName
328: (0008,0008) CS #16 [ORIGINAL\PRIMARY] ImageType
352: (0008,0016) UI #32 [1.2.840.10008.5.1.4.1.1.77.1.1.1] SOPClassUID



$ storescu -cDCM4CHEE@localhost:11112 /tmp/sample-mp4-file-small.dcm
Native OpenCV library has been found in /home/gunter/dcm4che/lib/linux-x86-64/libopencv_java.so
Scanning files to send
.
Scanned 1 files in 0.025s (=25ms/file)
12:39:33.489 INFO  - Initiate connection from 0.0.0.0/0.0.0.0:0 to localhost:11112
12:39:33.498 INFO  - Established connection Socket[addr=localhost/127.0.0.1,port=11112,localport=43155]
12:39:33.502 DEBUG - /127.0.0.1:43155->localhost/127.0.0.1:11112(1): enter state: Sta4 - Awaiting transport connection opening to complete
12:39:33.503 INFO  - STORESCU->DCM4CHEE(1) << A-ASSOCIATE-RQ
12:39:33.503 DEBUG - A-ASSOCIATE-RQ[
  calledAET: DCM4CHEE
  callingAET: STORESCU
  applicationContext: 1.2.840.10008.3.1.1.1 - DICOM Application Context Name
  implClassUID: 1.2.40.0.13.1.3
  implVersionName: dcm4che-5.31.1
  maxPDULength: 16378
  maxOpsInvoked/maxOpsPerformed: 0/0
  PresentationContext[id: 1
    as: 1.2.840.10008.1.1 - Verification SOP Class
    ts: 1.2.840.10008.1.2 - Implicit VR Little Endian
  ]
  PresentationContext[id: 3
    as: 1.2.840.10008.5.1.4.1.1.77.1.1.1 - Video Endoscopic Image Storage
    ts: 1.2.840.10008.1.2.1 - Explicit VR Little Endian
  ]
  PresentationContext[id: 5
    as: 1.2.840.10008.5.1.4.1.1.77.1.1.1 - Video Endoscopic Image Storage
    ts: 1.2.840.10008.1.2 - Implicit VR Little Endian
  ]
  PresentationContext[id: 7
    as: 1.2.840.10008.5.1.4.1.1.77.1.1.1 - Video Endoscopic Image Storage
    ts: 1.2.840.10008.1.2.4.102 - MPEG-4 AVC/H.264 High Profile / Level 4.1
  ]
]
12:39:33.508 DEBUG - STORESCU->DCM4CHEE(1): enter state: Sta5 - Awaiting A-ASSOCIATE-AC or A-ASSOCIATE-RJ PDU
12:39:33.511 INFO  - STORESCU->DCM4CHEE(1) >> A-ASSOCIATE-AC
12:39:33.512 DEBUG - A-ASSOCIATE-AC[
  calledAET: DCM4CHEE
  callingAET: STORESCU
  applicationContext: 1.2.840.10008.3.1.1.1 - DICOM Application Context Name
  implClassUID: 1.2.40.0.13.1.3
  implVersionName: dcm4che-5.31.1
  maxPDULength: 16378
  maxOpsInvoked/maxOpsPerformed: 0/0
  PresentationContext[id: 1
    result: 0 - acceptance
    ts: 1.2.840.10008.1.2 - Implicit VR Little Endian
  ]
  PresentationContext[id: 3
    result: 4 - transfer-syntaxes-not-supported (provider rejection)
    ts: 1.2.840.10008.1.2.1 - Explicit VR Little Endian
  ]
  PresentationContext[id: 5
    result: 4 - transfer-syntaxes-not-supported (provider rejection)
    ts: 1.2.840.10008.1.2 - Implicit VR Little Endian
  ]
  PresentationContext[id: 7
    result: 0 - acceptance
    ts: 1.2.840.10008.1.2.4.102 - MPEG-4 AVC/H.264 High Profile / Level 4.1
  ]
]
12:39:33.512 DEBUG - STORESCU->DCM4CHEE(1): enter state: Sta6 - Association established and ready for data transfer
Connected to DCM4CHEE in 24ms
12:39:33.514 INFO  - STORESCU->DCM4CHEE(1) << 1:C-STORE-RQ[pcid=7, prior=0
  cuid=1.2.840.10008.5.1.4.1.1.77.1.1.1 - Video Endoscopic Image Storage
  iuid=2.25.96419567555371593278345484064824299176 - ?
  tsuid=1.2.840.10008.1.2.4.102 - MPEG-4 AVC/H.264 High Profile / Level 4.1]
12:39:33.514 DEBUG - STORESCU->DCM4CHEE(1) << 1:C-STORE-RQ Command:
(0000,0002) UI [1.2.840.10008.5.1.4.1.1.77.1.1.1] AffectedSOPClassUID
(0000,0100) US [1] CommandField
(0000,0110) US [1] MessageID
(0000,0700) US [0] Priority
(0000,0800) US [0] CommandDataSetType
(0000,1000) UI [2.25.96419567555371593278345484064824299176] AffectedSOPInstan

12:39:33.530 DEBUG - STORESCU->DCM4CHEE(1) << 1:C-STORE-RQ Dataset sending...
12:39:33.531 DEBUG - STORESCU->DCM4CHEE(1) << 1:C-STORE-RQ Dataset sent
12:39:33.808 INFO  - STORESCU->DCM4CHEE(1) >> 1:C-STORE-RSP[pcid=7, status=0H
  cuid=1.2.840.10008.5.1.4.1.1.77.1.1.1 - Video Endoscopic Image Storage
  iuid=2.25.96419567555371593278345484064824299176 - ?
  tsuid=1.2.840.10008.1.2.4.102 - MPEG-4 AVC/H.264 High Profile / Level 4.1]
12:39:33.808 DEBUG - STORESCU->DCM4CHEE(1) >> 1:C-STORE-RSP Command:
(0000,0002) UI [1.2.840.10008.5.1.4.1.1.77.1.1.1] AffectedSOPClassUID
(0000,0100) US [32769] CommandField
(0000,0120) US [1] MessageIDBeingRespondedTo
(0000,0800) US [257] CommandDataSetType
(0000,0900) US [0] Status
(0000,1000) UI [2.25.96419567555371593278345484064824299176] AffectedSOPInstan

.12:39:33.808 INFO  - STORESCU->DCM4CHEE(1) << A-RELEASE-RQ
12:39:33.808 DEBUG - STORESCU->DCM4CHEE(1): enter state: Sta7 - Awaiting A-RELEASE-RP PDU
12:39:33.809 INFO  - STORESCU->DCM4CHEE(1) >> A-RELEASE-RP
12:39:33.809 INFO  - STORESCU->DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=43155]
12:39:33.809 DEBUG - STORESCU->DCM4CHEE(1): enter state: Sta1 - Idle
Sent 1 objects (=0.52MB) in 0.296s (=1.755MB/s)


For upload by http, you would have to wrap the DICOM file into a multi-part/related payload, e.g.

$ echo -ne "\r\n--myboundary\r\nContent-Type: application/dicom\r\n\r\n" > mime.dicom.head
$ echo -ne "\r\n--myboundary--" > mime.tail
$ cat mime.dicom.head sample-mp4-file-small.dcm mime.tail   > sample-mp4-file-small.mime
$ curl -v -H "Content-Type: multipart/related; type=\"application/dicom\"; boundary=myboundary" http://localhost:8080/dcm4chee-arc/aets/DCM4CHEE/rs/studies --data-binary @sample-mp4-file-small.mime
*   Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> POST /dcm4chee-arc/aets/DCM4CHEE/rs/studies HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.81.0
> Accept: */*
> Content-Type: multipart/related; type="application/dicom"; boundary=myboundary
> Content-Length: 544845
>
* We are completely uploaded and fine
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Access-Control-Allow-Headers: origin, content-type, accept, authorization
< Access-Control-Expose-Headers: content-type, warning
< Date: Mon, 11 Sep 2023 10:49:42 GMT
< Connection: keep-alive
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Credentials: true
< Transfer-Encoding: chunked
< Content-Type: application/dicom+xml
< Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS, HEAD
<
<?xml version="1.0" encoding="UTF-8"?><NativeDicomModel xml:space="preserve"><DicomAttribute keyword="RetrieveURL" tag="00081190" vr="UR"><Value number="1">http://localhost:8080/dcm4chee-arc/aets/DCM4CHEE/rs/studies/2.25.218815529986284582994299759326503981615</Value></DicomAttribute><DicomAttribute keyword="ReferencedSOPSequence" tag="00081199" vr="SQ"><Item number="1"><DicomAttribute keyword="ReferencedSOPClassUID" tag="00081150" vr="UI"><Value number="1">1.2.840.10008.5.1.4.1.1.77.1.1.1</Value></DicomAttribute><DicomAttribute keyword="ReferencedSOPInstanceUID" tag="00081155" vr="UI"><Value number="1">2.25.96419567555371593278345484064824299176</Value></DicomAttribute><DicomAttribute keyword="RetrieveURL" tag="00081190" vr="UR"><Value number="1">http://localhost:8080/dcm4chee-arc/aets/DCM4CHEE/rs/studies/2.25.218815529986284582994299759326503981615/series/2.25.221400934610550855383506751513195900922/instances/2.25.96419567555371593278345484064824299176</Value></DicomAttribute></Item></DicomAttribute></NativeDicomModel>

s.
https://github.com/dcm4che/dcm4chee-arc-light/wiki/Store-objects-by-STOW-RS

Amms

unread,
Sep 19, 2023, 12:44:11 AM9/19/23
to dcm4che

Thank you . 

Does dcm4chee.5.21.0 support the same? 
Reply all
Reply to author
Forward
0 new messages