* @throws IOException
*/
public BufferedImage decodeStream(byte[] bytesToDecode) throws IOException {
ByteArrayInputStream is = new ByteArrayInputStream(bytesToDecode);
JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(is);
decodedImage = decoder.decodeAsBufferedImage();
return decodedImage;
}
private void processImages(VNCMessage vncMessage) {
if (vncMessage.getImageNumber() == 0 && currentImage == -1) {