Conversation
|
I think it would be nice to write the used / selected transfer-syntax into the "Content-Type" of each multipart item, but not sure if that is standard compliant |
My interpretation of PS 3.18 8.7.9 would be that yes, you can add
Oh, and B.11 shows an example of just that! |
|
Added a commit that adds the transfer-syntax-uid to the multipart items. Thanks! |
src/backend/dimse/wado.rs
Outdated
| writeln!(buffer, "Content-Type: {}\r", "application/dicom")?; | ||
| writeln!( | ||
| buffer, | ||
| "Content-Type: {}; transfer-syntax=\"{}\"\r", |
There was a problem hiding this comment.
Transfer syntax UIDs might have a trailing null character (\0), which trim does not remove. So it might be worth looking for places where these null characters can emerge by mistake in the output (there was something in the first screenshot).
There was a problem hiding this comment.
I added a commit trimming these trailings null in this place. I think in this PR this is the only relevant place
|
I rebased this to work after the latest changeset |
Implements #10
Without transcoding:

With transcoding:

See supported transfer syntaxes here: https://docs.rs/dicom-transfer-syntax-registry/latest/dicom_transfer_syntax_registry/#transfer-syntaxes (thanks @Enet4 for the hint)