I am using some file IO and want to know if there is a method to check if a file is an image?
IO
if( ImageIO.read(*here your input stream*) == null) *IS NOT IMAGE*
And also there is an answer: How to check a uploaded file whether it is a image or other file?