Click here to Skip to main content
15,888,177 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
How do I store a fingerprint image using a double datatype instead of varbinary in sql server using c# as the front end.
Posted
Comments
AspDotNetDev 18-Oct-10 16:27pm    
Why would you want to?
Ogorgirl 18-Oct-10 16:30pm    
I am having a difficulty trying to compare the images in hexadecimal(varbinary). I decided to use Double which will be easier to compare
AspDotNetDev 18-Oct-10 16:42pm    
Really depends on what you want (e.g., if you are storing raw pixel data or a compressed image file), but I can almost guarantee you that using a double datatype is going to be difficult and silly. If you don't want to use varbinary, use integer instead. Or, even better, figure out how to properly use varbinary.
Ogorgirl 18-Oct-10 17:06pm    
Thanks. I'm finding it difficult to compare Hexadecimals cos it stores it as Hexadecimal when I use varbinary.. Fingerprint images never have same hex value, it is difficult converting it and then matching it with the new fingerprint hex value to be stored. I don't know if u understand what i mean?
AspDotNetDev 18-Oct-10 19:19pm    
Not really. When you get the data back to C#, you do not have it in a "hexadecimal" form. You probably get a byte array. Each byte stores 8-bits (or 256 combinations). Assuming you pass it in as a byte array and you get it back as a byte array, I don't see what the problem is. Perhaps if you update your question with a very specific example of a problem you are encountering, and include code, we can help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900