OK, so I've made some progress, but now I'm not getting any image data - hopefully someone can help?
I had trouble building the source via maven/eclipse but eventually managed to do that.
I'm now looking at extending BasicCStoreSCP to do what I need. I've created two services - FilmSession and FilmBox which seem to be called correctly when I try to print to this server
I am getting information about the film box, but I don't seem to be getting any image data.
Here's my basic code:
protected void store(Association as, PresentationContext pc, Attributes rq,
PDVInputStream data, Attributes rsp) throws IOException {
System.out.println("FilmBox handling data");
DicomInputStream dis = new DicomInputStream(data);
Attributes attr = dis.readDataset(-1,-1);
System.out.println("FilmBox exclude bulk data = " + dis.isExcludeBulkData() );
dis.close();
}
and here are the attributes I get:
(2010,0010) ST [STANDARD\4,4] ImageDisplayFormat
(2010,0040) CS [PORTRAIT] FilmOrientation
(2010,0050) CS [8INX10IN] FilmSizeID
(2010,0060) CS [NONE] MagnificationType
(2010,0080) CS [NORMAL] SmoothingType
(2010,0100) CS [BLACK] BorderDensity
(2010,0110) CS [BLACK] EmptyImageDensity
(2010,0120) US [0] MinDensity
(2010,0130) US [399] MaxDensity
(2010,0140) CS [NO] Trim
(2010,0150) ST [Value 1] ConfigurationInformation
(2010,0500) SQ [1 Items] ReferencedFilmSessionSequence
>Item #1
>(0008,1150) UI [1.2.840.10008.5.1.1.1] ReferencedSOPClassUID
>(0008,1155) UI [] ReferencedSOPInstanceUID
(2020,0050) CS [STANDARD] RequestedResolutionID
But I don't seem to get any data after that - what am I missing in order to get the pixel data?
Is there any overviews on how this is supposed to work? I can't find much online apart from specifications, but no overview of the process for dcm4che or dicom itself?