I have a program where I have to locate a sub-image within a larger image. I open the image files and convert them to 3D arrays, manipulate the images. I have figured out how to save to bmp, but really need to save the image to jpg format. I can supply the image in either a 3D array [col][row][32 bit color] or 2D array [index][32 bit color] or 1D array of 32 bit colors. How do I save any of these to a jpg file format, whatever is easier. This may seem trivial but I am not a JAVA programmer, please help!