How to store objects by STOW RS

Gunter Zeilinger edited this page Jun 29, 2016 · 4 revisions
Clone this wiki locally

According DICOM Part 18, 6.6. STOW-RS you have to wrap the DICOM Part 10 files into a MIME Multipart/Related message, before sending it by a HTTP POST request, e.g. on Linux:

echo -ne "\r\n--myboundary\r\nContent-Type: application/dicom\r\n\r\n" > mime.head
echo -ne "\r\n--myboundary--" > mime.tail
cat mime.head dicom-file1.dcm mime.head dicom-file2.dcm mime.tail | \
curl -H "Content-Type: multipart/related; type=application/dicom; boundary=myboundary" \
     http://localhost:8080/dcm4chee-arc/aets/DCM4CHEE/rs/studies --data-binary @-