What is the best way to compare with images in a database? I tried to compare them (@Image is an image type):
Select * from Photos where [Photo] = @Image
But it gets the error "Image and image of data types are incompatible in an equal operator."
Because the image data type is binary and a huge storage space, IMO, the easiest way to compare image fields is to compare hashes. Therefore, you need to save the hash of the "Photo" column on your table.
, , . , . , . , , , , .
, , .
, , . .
, 100100 , 5050 . ( ), .
, , :
, , ( , , ), MD5 .
, . , DATALENGTH SUBSTRING READTEXT, . , CLR .
, . , . , , . 2 , 50% . , , .
, .
Source: https://habr.com/ru/post/1706445/More articles:Есть ли способ включить двойную буферизацию для компонентов SWT? - javaДизайнер класса Eclipse и дизайн ↔ привязки источника java - javaHow to change annotation / hibernate validation rules at runtime? - java"operation not supported" when calling an RPC call in Vista - c ++double.Epsilon vs. std :: numeric_limits https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1706446/what-vcs-allows-me-to-add-changes-to-multiple-pending-commits-simultaneously&usg=ALkJrhh_dAqaSQhDYjBNPyMJaH315oCK5AImplementing variable constraints in C ++ - c ++Constructor in wcf - c #How do you pass a link when using typename as an argument to a function in C ++? - c ++Using Visual Studio 2008 and 2005 in the same group - c #All Articles