Thanks, but I have solved the problems meanwhile. First off, the color order was BGRA. In vb, the decoder wanted the stream to be reset back to the beginning and the read values were the differences to 255. In java, I decoded the jpg to a raster first, there swapped red and blue and created the image from both the raster and a new color model.