Turn set of bytes into a JPEG

I have a stream of bytes that I have taken out of a JPEG and wish to turn into a JPEG - I can make it into a JPEG using a Raster and a BufferedImage but cannot get the colour to show correctly.Anyone got any ideas/ suggestions?MArk
[259 byte] By [markee1] at [2007-9-26 3:49:56]
# 1
Addendum - I have taken them from a pdf and know they are using an RGB colorspace.
markee1 at 2007-6-29 12:35:00 > top of Java-index,Security,Cryptography...
# 2
To clarify the question, I have a set of bytes in a raster. How do I tell Java 2D that they are RGB indexed format?MArk
markee1 at 2007-6-29 12:35:00 > top of Java-index,Security,Cryptography...