Hello,
I am working on a project which aims to compare an image to from a database of images and find out similar looking images.
I am working with a DLL file which returns unique hash for each image.
The hash is an array of 768 bytes. (byte[])
My problem is how can I store this byte[] in database and later retrive it back as a byte[]?
I have tried many methods like storing it in a varbinary and varchar format but when I look in the database, its just a long number (might be string) and there is no information about which element goes where in array if that makes sense??
SqlCommand cmd1 = new SqlCommand("INSERT INTO SIMILAR (ImageHash, ID) VALUES ((@hash), 26)", con);
byte[] hash1 = GetHash(path1, 1);
byte[] hash2 = GetHash(path2, 1);
cmd1.Parameters.AddWithValue("@hash", hash1);
Any help is greatly appreciated.
Ash