ImageIO.createImageInputStream Keeps Returning null
Hey all, Whenever I try to get an ImageInputStream object using ImageIO.createImageInputStream it simply returns null with no exceptions, warnings or errors. I have tried passing different data types to the function, a simple File , and an InputStream , but both returned null also. The documentation says that if no suitable ImageInputStreamSpi is found then the function will return null , but the file is a bog-standard JPEG, and surely Java comes with a service provider for such a format out of the box? Thanks for your time. /** * Reads in an image from a file and returns the image in a * {