How to Compare Image data types?
I need compare a file stored in DB with an uploaded file But it says that comparing Image data type is not possible I even tried to convert to nchar
(CONVERT(char(1000), FileData)
Can anyone help me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Don’t use the
imagedatatype it is deprecated.Instead use the replacement datatype
varbinary(max)which does not have all the limitations ofimageIn the meantime you can
cast(FileData as varbinary(max))to allow comparisons.