Here is my script :
echo -n -e "\r\n--myboundary\r\nContent-Type: application/dicom\r\n\r\n" > mime.head
echo -n -e "\r\n--myboundary--" > mime.tail
cat mime.head test4.dcm mime.tail > mine.body
curl -H "Content-Type: multipart/related; type=application/dicom; boundary=myboundary" \
here is the part of the log:
2016-06-26 02:25:39,983 WARN [org.dcm4chee.arc.store.org.dcm4chee.archive.store.impl.StoreServiceImpl] (default task-1) nu...@172.19.0.1->DCM4CHEE: Failed to encode received object:: java.io.EOFException
at org.dcm4che3.util.StreamUtils.readFully(StreamUtils.java:74)
at org.dcm4che3.io.DicomInputStream.readFully(DicomInputStream.java:400)
at org.dcm4che3.io.DicomInputStream.readHeader(DicomInputStream.java:424)
at org.dcm4che3.io.DicomInputStream.readAttributes(DicomInputStream.java:520)
at org.dcm4che3.imageio.codec.Transcoder.transcode(Transcoder.java:295)
the Test file can be found in the attachment .
I have reported this issue in git . pls help check it again . Thanks a lot.