Can you please specify the exact parameters/flags you used while using the stow-rs tool to send this image to archive? When I used just --pixel-header and used WADO-URI service, I didn't get the red-colored image as you have attached above, but instead I get an error on archive side as follows :
2019-06-11 11:50:26,975 INFO [org.dcm4chee.arc.wado.WadoURI] (default task-5) Process GET /dcm4chee-arc/aets/AS_RECEIVED/wado?requestType=WADO&studyUID=2.25.185972937102394389358418529931293279790&seriesUID=2.25.297891147984946032883158366576857301253&objectUID=2.25.29353955950367107624649984352172873465&contentType=image/jpeg&frameNumber=1 from
nu...@127.0.0.1.........
.........
2019-06-11 11:50:27,167 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-5) RESTEASY002025: Unknown exception while executing GET /aets/AS_RECEIVED/wado: java.lang.IllegalArgumentException: Raster ByteInterleavedRaster: width = 2480 height = 3507 #numDataElements 3 dataOff[0] = 2 is incompatible with ColorModel ColorModel: #pixelBits = 24 numComponents = 3 color space = org.dcm4che3.image.YBRColorSpace@32472ab7 transparency = 1 has alpha = false isAlphaPre = false
at java.desktop/java.awt.image.BufferedImage.<init>(BufferedImage.java:622)
at org.dcm4che3.imageio.plugins.dcm.DicomImageReader.read(DicomImageReader.java:494)
at org.dcm4chee.arc.wado.RenderedImageOutput.write(RenderedImageOutput.java:117)
.........
.........
2019-06-11 11:50:27,170 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-5) RESTEASY002020: Unhandled asynchronous exception, sending back 500: org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException: Raster ByteInterleavedRaster: width = 2480 height = 3507 #numDataElements 3 dataOff[0] = 2 is incompatible with ColorModel ColorModel: #pixelBits = 24 numComponents = 3 color space = org.dcm4che3.image.YBRColorSpace@32472ab7 transparency = 1 has alpha = false isAlphaPre = false
at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:265)
.........
.........
at org.dcm4chee.arc.wado.WadoURI.buildResponse(WadoURI.java:266)
at org.dcm4chee.arc.wado.WadoURI.get(WadoURI.java:214)
at org.dcm4chee.arc.wado.WadoURI$Proxy$_$$_WeldClientProxy.get(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
.........
.........
Caused by: java.lang.IllegalArgumentException: Raster ByteInterleavedRaster: width = 2480 height = 3507 #numDataElements 3 dataOff[0] = 2 is incompatible with ColorModel ColorModel: #pixelBits = 24 numComponents = 3 color space = org.dcm4che3.image.YBRColorSpace@32472ab7 transparency = 1 has alpha = false isAlphaPre = false
at java.desktop/java.awt.image.BufferedImage.<init>(BufferedImage.java:622)
at org.dcm4che3.imageio.plugins.dcm.DicomImageReader.read(DicomImageReader.java:494)
at org.dcm4chee.arc.wado.RenderedImageOutput.write(RenderedImageOutput.java:117)
Was there any other option you set in addition to --pixel-header when using stow-rs tool?
- When I use jpg2dcm tool to convert this image to dicom file and then sent it to archive using storescu tool or directly use Upload DICOM object using archive UI or even if on a particular study I just upload directly the jpeg file, I see the original image as it is when WADO-URI service is invoked. See attached.