Arduino UNO R3 with Video Experimenter Shield. I am getting from Arduino with pollserial communication bytes of images captured from a security camera, with the help of Video Experimenter Shield. I built that code in Java to retrieve the bytes from Arduino and convert the ByteArrayList into a monochrome image of 0's and 1's.
The java program is not collecting the data available from the arduino at once, and then in case of OUTPUT_BUFFER_EMPTY make this stack of bytes an image. But it keeps saving the bytes received from the arduino, again and again into the byte chunk.