STOW-RSでハマった話
Docker Desktop for WindowsでOrthancコンテナを立ち上げ、DICOM Webの確認をしていたときのハマった事例を共有します。
環境
- Docker Desktop for Windows
- Orthanc
- CentOS 8
- Postman
ハマったこと
- Postman→OrthancにSTOW-RSでDICOMデータを登録しても登録されない。
- HTTP 200応答される
- データは登録されていない。
調査~解決
- Orthancコミュニティで質問したところ、curlコマンドとDICOMファイルの提出を求められたのでPostmanからcurlを生成して調査
- --formにContent-typeがついてないことに気がつく。
- つけてみてcurl実行 (CentOS8上で) →成功・ファイル登録された。
curl --location--request POST 'http://172.17.0.2:8042/dicom-web/studies/'\--header'Content-Type: multipart/related; type="application/dicom"'\--header'Authorization: Basic b3J0aGFuYzpvcnRoYW5j'\--form'content=@sample.dcm; type=application/dicom'\--verbose
仕様・規格
現行のPostman仕様とDICOM規格からすると、PostmanでSTOW-RSを使うのは不可能のようです。
Postmanはバイナリには個別にContent-typeはつけない
https://learning.postman.com/docs/postman/sending-api-requests/requests/#sending-body-data一方で、DICOM規格を見ると、Bodyの各パートごとに宣言が必要との記載が。。。
http://dicom.nema.org/dicom/2013/output/chtml/part18/sect_6.6.html