sql - Digital Person fingerprint image retrieving -


i using following code save finger print scanned through digital persona's device.

dim cls new clsdataaccess dim con = new sqlconnection(cls.sqlconnectiontring) dim cmd new sqlcommand dim str new memorystream enroller.template.serialize(str) dim serializedtemplate byte() = str.toarray() 'cmd.parameters.add(new sqlparameter("@fn", sqldbtype.varchar, 10)).value = "joe" 'sql.dbtype dim param(0) sqlparameter 'dim t integer = join(serializedtemplate, ",") param(0) = new sqlparameter("@biometricdata", serializedtemplate)  'public onlineconnectionstring string = "data source = 203.234.5.678; database = mydb; user cndid = username; password = xxxxxx;"  'dim cmd new sqlcommand("insert tbltestbio (biovalue) values (@biometricdata)", con) 'cmd.parameters.add(param)  dim pictureparameter sqlclient.sqlparameter = new sqlclient.sqlparameter("@picture", sqldbtype.binary) pictureparameter.value = serializedtemplate cmd.parameters.add(pictureparameter) 

the problem when try retrieve image using memory stream ordinary image, won't load. other image using object browser being displayed code. doing wrong? below code image retrieval.

sub imageloadfun(byval barrimg() byte)     try         dim ms new memorystream(barrimg)         dim returnimage image = image.fromstream(ms)         picturebox1.image = returnimage.image         employeedrawpicture(img)     catch ex exception         messagebox.show(ex.message)     end try end sub 

it seems "template" sensor , not "image".

template list of minutiae , other info.

you need check in fingerprint api if there's method image. careful, image, fingerprint sensor, not in rgb format in greyscale.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -