I want to fetch all images from database for comparing and matching these images by the image which is uploaded by user.....
I used this query to fetch images.. but it is fetching only first record of database... Please guid me where is the problem...
SqlCommand cmd = new SqlCommand("select Images from Table", con);
SqlDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
byte[] b = new byte[0];
b = (Byte[])(dr["Images"]);
MemoryStream ms = new MemoryStream(b);
Bitmap pic = new Bitmap(ms);
Image<Bgr, Byte> image1 = new Image<Bgr, Byte>(pic);
}