[mjpeg @ 000000000058f1c0] error y=33 x=27 [mpjpeg @ 0000000000578420] Expected boundary '--' not found, instead found a line of 29 bytes [mpjpeg @ 0000000000578420] Expected boundary '--' not found, instead found a line of 55 bytes [mpjpeg @ 0000000000578420] Expected boundary '--' not found, instead found a line of 32 bytes
ifact i'm trying to save an image taken from ip camera with java. i just wanted to notice that i never had this error from internal computer camera and i used the same code.... this is my fonction:µ @FXML protected void takeAPic(){
Mat takeAPic= new Mat();
capture.read(takeAPic);
Image img=mat2Image(takeAPic);
BufferedImage image;
image = SwingFXUtils.fromFXImage(img, null);
saveImage(image);
}
public boolean saveImage (BufferedImage img) {
if(img!=null){
try {
File outputfile = new File(val+"Saves.png");
ImageIO.write(img, "jpg", outputfile);
val++;
} catch (Exception e) {
System.out.println("error");
logger.info(e.getMessage());
}
return true;
}else{ return false;}
}