fix: Better handle octet stream case (#5789)
* Better handle octet stream case * Use data source config stack options * Use immutability helper * Use immutability helper (update) --------- Co-authored-by: Bill Wallace <wayfarer3130@gmail.com>
This commit is contained in:
1 parent
5837e6507e
commit
037402f7f6
3 files changed
+37
-7
No files matched your search
@@ -312,6 +312,18 @@ reasons:
|
||||
However, if you would like to get compressed data in a specific transfer syntax, you can modify the `acceptHeader` configuration or
|
||||
`requestTransferSyntaxUID` configuration.
|
||||
|
||||
### Data Source: stackRetrieveOptions
|
||||
At the data source configuration level, you can set `stackRetrieveOptions` to customize Cornerstone stack image retrieval. Merged with defaults; only specify overrides. For example, set `streaming: false` when the data source returns uncompressed DICOM (e.g. `application/octet-stream` only) to avoid black image on load:
|
||||
|
||||
```js
|
||||
configuration: {
|
||||
acceptHeader: ['application/octet-stream'],
|
||||
stackRetrieveOptions: {
|
||||
retrieveOptions: { single: { streaming: false } },
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
## Environment Variables
|
||||
|
||||
We use environment variables at build and dev time to change the Viewer's
|
||||
|
||||
Reference in new issue
Block a user