Home > Back-end >  Delphi genuflect is begged to read and write ACCESS BLOB fields in the source code!! Urgent, thank y
Delphi genuflect is begged to read and write ACCESS BLOB fields in the source code!! Urgent, thank y

Time:10-28

There is a BLOB field in ACCESS, content for OLE way into WORD content, we need look for help, hope to provide the Delphi environment, read and write ACCESS database of the BLOB field in the source code, table named test, field called "jl",
Search some on the net, with stream or blobstream stream file read and write, test, suggests that "invalid streaming media format,"
Thank you very much!!

CodePudding user response:

TblobField (adoquery1 FieldByName (' jj ')). The LoadFromFile ();
TblobField (adoquery1 FieldByName (' jj). SaveFromFile ();

CodePudding user response:

Turn to me!

For I:=0 to do EmployeeRecordCount - 1
The begin
TBlobField (FieldByName (' Tface1).) SaveToStream (tempStream);
CopyMemory (@ the Employee [I] faceTemplates [0]. Ftemplate, tempStream. Memory, 16384);
TempStream. The Clear;
TempStream. SetSize (16384);//set the flow size


TempStream. Free;//release flow
  • Related