how to write query for content based image retreival

Jun 18 2010 12:46 AM
HI

IAM USEING SQL SERVER 2005, IN WHICH I HAVE A TABLE IN THAT 100 PRODUCT DETAILS ARE THERE AND EACH ROW HAS PRODUCT IMAGE column

(product is inserted as binary data)

i want to serach the similar image by giving an image as a input

for this how to give the input image in query format and how to search with that input query in the database