We have been working on vision code with Java, and we are trying to save an image to the roboRIO. Following what we did last year, we connected to the roboRIO with SFTP (filezilla), and then created a folder in the root directory called "image" and placed a picture called test.jpg.
However, when we try to write the file using
Code:
NIVision.imaqWriteJPEGFile(frame, "/image/test.jpg", 100, colorTable);
frame is our image to be written.
However, when we run the code, we get an error on that line saying: "Unhandled exception: VisionException [com.ni.vision.VisionException: imaqError: -1232673104: Unknown error] at [com.ni.vision.NIVision._imaqWriteJPEGFile(Native Method), com.ni.vision.NIVision.imaqWriteJPEGFile(NIVision. java:25654)" on the line of code mentioned above.
It is hard to figure out what is wrong since it is an "unknown" error; however, we believe it has something to do with the file path. Has anyone seen this error before and/or know how to fix it? Anything helps, thanks!