Determines if varbinary data is a JPEG file. You can use this function to verify that an uploaded file with the .jpg extension actually is a JPEG.
This function does not check the integrity of the file: a damaged or truncated JPEG will still be considered a JPEG even though you may not be able to render it.
1 if the image is a JPEG.