Skip to content

Commit b8079d4

Browse files
committed
fix(transfer-syntax): Hardcode transferSyntaxUID for retrieveInstanceFrame requests
1 parent 9aee3d1 commit b8079d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ class VLWholeSlideMicroscopyImageViewer {
249249
* - metadata (array of DICOM JSON metadata for each image instance)
250250
* - retrieveRendered (whether frames should be retrieved using DICOMweb RetrieveRenderedTransaction)
251251
* - useWebGL (whether WebGL renderer should be used; default: true)
252+
* - mediaType Object: { mimetype, transferSyntaxUID } (Used for setting mediaType in dicomWebClient's retrieveInstanceFrame call)
252253
*/
253254
constructor(options) {
254255
if ('useWebGL' in options) {
@@ -488,12 +489,13 @@ class VLWholeSlideMicroscopyImageViewer {
488489
} else {
489490
// TODO: support "image/jp2" and "image/jls"
490491
const mimeType = 'image/jpeg';
492+
491493
const retrieveOptions = {
492494
studyInstanceUID,
493495
seriesInstanceUID,
494496
sopInstanceUID,
495497
frameNumbers,
496-
mimeType
498+
mimeType: `${mimeType}; transfer-syntax=1.2.840.10008.1.2.4.50`
497499
};
498500
options.client.retrieveInstanceFrames(retrieveOptions).then((rawFrames) => {
499501
const blob = new Blob(rawFrames, {type: mimeType});

0 commit comments

Comments
 (0)