Hey all, weird question. My company has an application from another company that records an image taken by a camera connected via Ethernet. Their app is written in C++ and I've been trying to convert/hack it using Java.
I'm able to receive images, but the quality is not the same. The photo on top is from their app and the photo on bottom is from mine:
Any idea why those artifacts are showing up in my version of the app written in Java? It happens with both BMP and JPG images.
The way it works is just through sockets (both the C++ and Java versions)... a command is sent to capture an image and the camera responds by sending the data (bytes). I save a byte array then create a new BufferedImage from them:
// Create buffered image from bytes
image = ImageIO.read(new ByteArrayInputStream(imageBytes));
Thanks for any input or ideas.