Is there an easy way to verify a file selected by the user is actually a image file and not some other file that happens to have a image extension or if the image file is corrupt.
Im using a openfiledialog to get the image.
The user selects a jpg file, but its possible this file is corrupt or is not a true jpg file.
I could try to display the file in a picturebox and use a try/catch, but I dont want to display it, I just want to quickly verify if its actually a image or not.
Using VB .NET
Im using a openfiledialog to get the image.
The user selects a jpg file, but its possible this file is corrupt or is not a true jpg file.
I could try to display the file in a picturebox and use a try/catch, but I dont want to display it, I just want to quickly verify if its actually a image or not.
Using VB .NET