problem saving blob field with tsqlquery
Posted: Mon 28 Jul 2008 17:39
Hello,
I'm trying to save a blobstream using tsqlquery.
After executing the query, everything looks fine so far, but for files > 1kb the blob field is empty.
The fieldtype in my database is BLOB.
My code looks like:
FQry.SQL.Add('UPDATE tbl_dbtool_doc SET blbFileBlob = :Blob WHERE intId_pk = 6');
FQry.ParamByName('Blob').LoadFromStream(AStream, ftBlob);
FQry.ExecSQL;
I've also tried to set
FQry.ParamByName('Blob').ParamType := ptOutput;
FQry.ParamByName('Blob').DataType := ftOraBlob;
but then I get an access vialoation in dbexpoda40.dll (v 4.2).
Thanks for your help
Sebastian
I'm trying to save a blobstream using tsqlquery.
After executing the query, everything looks fine so far, but for files > 1kb the blob field is empty.
The fieldtype in my database is BLOB.
My code looks like:
FQry.SQL.Add('UPDATE tbl_dbtool_doc SET blbFileBlob = :Blob WHERE intId_pk = 6');
FQry.ParamByName('Blob').LoadFromStream(AStream, ftBlob);
FQry.ExecSQL;
I've also tried to set
FQry.ParamByName('Blob').ParamType := ptOutput;
FQry.ParamByName('Blob').DataType := ftOraBlob;
but then I get an access vialoation in dbexpoda40.dll (v 4.2).
Thanks for your help
Sebastian