-
Notifications
You must be signed in to change notification settings - Fork 41
Description
I'm currently working with a Slim deployment which is retrieving JPEG encoded SM instances. The request's accept header is as follows:
multipart/related; type="image/jls"; transfer-syntax=1.2.840.10008.1.2.4.80, multipart/related; type="image/jls"; transfer-syntax=1.2.840.10008.1.2.4.81, multipart/related; type="image/jp2"; transfer-syntax=1.2.840.10008.1.2.4.90, multipart/related; type="image/jp2"; transfer-syntax=1.2.840.10008.1.2.4.91, multipart/related; type="image/jpx"; transfer-syntax=1.2.840.10008.1.2.4.92, multipart/related; type="image/jpx"; transfer-syntax=1.2.840.10008.1.2.4.93, multipart/related; type="application/octet-stream"; transfer-syntax=*, multipart/related; type="image/jpeg"; transfer-syntax=1.2.840.10008.1.2.4.50
and the response's content type
is:
multipart/related;start="<***@resteasy-multipart>";type="application/octet-stream"; boundary***
The source image is JPEG encoded, so I think that since JPEG appears after octet-stream, it chooses octet-stream instead. I assume the issue is introduced here:
dicom-microscopy-viewer/src/pyramid.js
Lines 461 to 472 in 097282b
}, | |
{ | |
mediaType: octetStreamMediaType, | |
transferSyntaxUID: octetStreamTransferSyntaxUID | |
} | |
]) | |
if (bitsAllocated <= 8) { | |
mediaTypes.push({ | |
mediaType: jpegMediaType, | |
transferSyntaxUID: jpegTransferSyntaxUID | |
}) | |
} |
Would it be sufficient to just put push the octet stream mediatype after the jpeg mediatype if statement?