I am attempting to figure out if images I have stored in a SQL table are .tif or .jpg. Looking at the data, it is easy to tell that all of the .jpg images begin with a certain pattern (0xFFD8FF). Is there any way I can cast the image as another data type, and compare it?
I've tried this, and it doesn't work.
I've tried this, and it doesn't work.
Code:
cast(img as binary) like '0xFF%'