Issue51

Title Orthanc WadoRS RetrieveFrames Fails with Internal Server Error 500: Error in Photometric Interpretation on WSI (SM modality) Dicom Images
Priority bug Status resolved
Superseder Nosy List admin
Assigned To
Keywords Plugin - DICOMweb

Created on 2017-06-08.22:16:23 by admin, last changed by admin.

Messages
msg233 (view) Author: admin Date: 2017-06-08.22:16:23
[BitBucket date: 2017-06-08.20:16:23]

Server is running on Linux.

The files on the Orthanc server are Dicom supplement 145 images from here:
ftp://medical.nema.org/medical/dicom/DataSets/

Sign in as guest, and the files are at /Volumes/DataSets/WG26/Hamamatsu

The Orthanc server fails to return frames (with any WadoRS RetrieveFrames call, I used curl) for any of these images, once uploaded to the server. All Orthanc WSI plugins are installed.

Internal server error 500 is returned, instead of .blk bulk files. I am requesting type=application/octet-stream. Changing this value has had no effect..
msg234 (view) Author: admin Date: 2018-03-07.14:45:05
[BitBucket user: Sébastien Jodogne]
[BitBucket date: 2018-03-07.13:45:05]

For reference, the images have been moved to: ftp://medical.nema.org/medical/dicom/datasets/WG26/Hamamatsu/
msg235 (view) Author: admin Date: 2018-03-07.15:57:46
[BitBucket user: Sébastien Jodogne]
[BitBucket date: 2018-03-07.14:57:46]

This problem is resolved since release 0.4 of the DICOMweb plugin.

First, start the Orthanc server with Docker: 


```
#!bash
sudo docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc-plugins:1.3.1
```

Secondly, in a separate terminal, run the following commands to retrieve the frame (transcoded to JPEG), and use the standard "display" tool from ImageMagick to display the frame (tested on Ubuntu 16.04):

```
#!bash
sudo apt-get install mpack
gdcmscu --store localhost 4242 Human_15x15_20x.dcm
STUDY_INSTANCE_UID='1.2.276.0.7230010.3.1.2.3252829876.2684.1426167758.662'
SERIES_INSTANCE_UID='1.2.276.0.7230010.3.1.3.3252829876.2684.1426167758.663'
SOP_INSTANCE_UID='1.2.276.0.7230010.3.1.4.3252829876.2684.1426167758.664'
FRAME='1'
TYPE='image/jpeg; transfer-syntax=1.2.840.10008.1.2.4.50'
curl -H "Accept: multipart/related; type=${TYPE}" -u orthanc:orthanc http://localhost:8042/dicom-web/studies/${STUDY_INSTANCE_UID}/series/${SERIES_INSTANCE_UID}/instances/${SOP_INSTANCE_UID}/frames/${FRAME} > answer
munpack -f answer
dd if=part1 of=tile.jpg bs=1 skip=2  # Skip the EOL characters that are preserved by munpack at the beginning of a multipart item
display ./tile.jpg
```
History
Date User Action Args
2026-07-29 15:51:20admincreate