How to Store and Retrieve a varbinary(max) Column in SQL Server
问题 I am developing an application in which I want to store the user's fingerprint into the database and then compare it with the one taken from the device. I've been having certain issues while converting a varbinary(max) column back to a byte[]. I have tried to use the GetSqlBinary function but it gives me indexoutofrangeException . I am using the code below for storing the template into the database but found that the value is the same for all users. (e.g. 0x000000) public int insernewVoter