The hardware is the synthesis card reader that needs to be installed to drive this thing.
Read the Web page, download the CAB package to register,
<object classid= "clsid:f1317711-6bde-4658-abaa-39e31d3704d3" codebase= "sdrdcard.cab#version=1,3,5,0" width=330
height=360 align=center display=none hspace=0 vspace=0 id=idcard name=rdcard></object>
The properties and methods of this object can then be used in the JS code.
Rdcard.readcard (); var readcardno= ""; if (rdcard.bhavecard) { Readcardno=Rdcard. Cardno; Rdcard.bhavecard=false; }
if (readcardno== "") {
Alert (' Please confirm if there is a card on the reader or whether to enter an ID or a farm card ');
}else{
Alert (' Read card success ');
Rdcard. SEXL;
Rdcard. Born;
Rdcard. Address;
Rdcard. Jpgbuffer
}
The properties of the object refer to this document: http://www.docin.com/p-1216156052.html
For photos that get an ID: Rdcard. Jpgbuffer returns the encoding of the Base64 bit of the JPG and then decodes it. Reference Document: http://www.atool.org/img2base64.php
Java code transcoding and decoding:
JS page Read ID