If any user gives the information of his photo in binary objects how can i search it and how can i display the corresponding image that was stored in the sql database
Share
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.
I will suggest to create a CRC/Hash of the Image File and then just search for this number. If you found it then compare the full Binary Format to be 100% that is the same.
To display the image I suggest to create an .ashx handler, that you send the ID of the image encrypted, then inside the handler you read the Image from the database and send to an img anchor.
eg.
I found some existing examples for display the image from the Database
http://www.aspfree.com/c/a/ASP.NET/Retrieving-Images-from-a-Database–C—Part-II/
http://csharpdotnetfreak.blogspot.com/2009/07/display-images-gridview-from-database.html
Its the same as I say…