var
aMem: TmemoryStream;
a: array[1..15] of char;
begin
//给a赋值
...
try
st := TmemoryStream.Create;
st.Clear;
a := '123456789012345';
st.Write(a,15);
if not (table1.State in [dsEdit, dsInsert]) then
table1.Insert;//or table1.Append;
TBlobField(table1.FieldByName('字段名称').LoadFromStream(st);
table1.Post;
finally
st.Free;
end;
end;
写类似