Hi -
I know that the real bug here is that I'm misunderstanding something :-).
A DICOM SCU that is trying to send data to a CC ImageServer is failing because it the images are compressed and the SCU can't decompress the images before they are sent. The images are in 1.2.840.10008.1.2.4.57 (JPEG Lossless Process 14). Here's the error I get:
Abstract Syntax 1.2.840.10008.5.1.4.1.1.2/CT Image Storage with Transfer Syntax 1.2.840.10008.1.2.4.57/JPEG Lossless, Non-Hierarchical (Process 14) not supported.
If the images are saved to disk I can import them in Osirix or the CC workstation and successfully send to the server. If I try to load the files using storescu.exe - I get an error message similar to the one above. The manual workaround is something that I want to avoid because it's just extra work for people that are insanely busy.
So - I decided to try to write a small StorageScp service that would read these images in and then retransmit them (decompressing if necessary) to the ImageServer. But I haven't been able to get this to work.
If I set up the presentation contexts like this:
pcid = assoc.AddPresentationContext(SopClass.CtImageStorage);
assoc.AddTransferSyntax(pcid, TransferSyntax.ExplicitVrLittleEndian);
assoc.AddTransferSyntax(pcid, TransferSyntax.ImplicitVrLittleEndian);
assoc.AddTransferSyntax(pcid, TransferSyntax.JpegLosslessNonHierarchicalFirstOrderPredictionProcess14SelectionValue1);
assoc.AddTransferSyntax(pcid, TransferSyntax.JpegLosslessNonHierarchicalProcess14);
This is the error message that I get from the following command:
$ storescu.exe -v +v -xs -aet SWDVM1 -aec TIMCROUTER +sd +sp *.dcm emiswd0vm1.partners.org 3333 0e5a9aceeb542efac4b55a4c197a5c31e533fda6/*
I: Association Accepted (Max Send PDV: 116782)
I: Sending file: 0e5a9aceeb542efac4b55a4c197a5c31e533fda6/01f35449e82608b692c7885de959a0c3cf4126d3.dcm
I: Transfer Syntax: JPEGLossless:Non-hierarchical:Process14 -> LittleEndianExplicit
I: Sending Store Request: MsgID 1, (CT)
XMIT: W: DIMSE Warning: (SWDVM1,TIMCROUTER): sendMessage: unable to convert data
set from 'JPEG Lossless, Non-hierarchical, Process 14' transfer syntax to 'Littl
e Endian Explicit'
E: Store Failed, file: 0e5a9aceeb542efac4b55a4c197a5c31e533fda6/01f35449e82608b692c7885de959a0c3cf4126d3.dcm:
E: 0006:020e DIMSE Failed to send message
E: Store SCU Failed: 0006:020e DIMSE Failed to send message
I: Aborting Association
If I commend out all but the
assoc.AddTransferSyntax(pcid,TransferSyntax.JpegLosslessNonHierarchicalProcess14);
I get the following message:
I: Association Accepted (Max Send PDV: 116782)
I: Sending file: 0e5a9aceeb542efac4b55a4c197a5c31e533fda6/01f35449e82608b692c788
5de959a0c3cf4126d3.dcm
E: No presentation context for: (CT) 1.2.840.10008.5.1.4.1.1.2
E: Store SCU Failed: 0006:0208 DIMSE No valid Presentation Context ID
I: Aborting Association
How can I change my code (or server config) so that these images are accepted?
Thanks!
Sean