procedure TfrmMgrMenuFingerPrtReg.FPRegisterTemplate1Done(Sender: TObject; var pTemplate: OleVariant);
var l_val : OleVariant;
l_pArray : PSafeArray;
i : integer;
fpBuffer : PByteArray;
bblob : Tblob;
begin
pTemplate.Export(l_val);
l_pArray := PSafeArray(TVarData(l_val).VArray);
blobSize := l_pArray.rgsabound[0].cElements * l_pArray.cbElements;
fpBuffer := VarArrayLock(l_val);
for i := 0 to blobSize - 1 do
fpData[i] := fpBuffer[i]; //pvData is byte array
VarArrayUnlock(l_val);
q_upd_fingerpool.parambyname('fingerPrint').asblob := ????? //<= hera isa da problema
procedure TfrmMgrMenuFingerPrtReg.FPRegisterTemplate1Done(Sender: TObject;
var pTemplate: OleVariant);
begin
q_upd_fingerpool.ParamByName('fingerPrint').AsVariant := pTemplate;
end
Users browsing this forum: No registered users and 2 guests