Posted on 1999-11-18
I need to save some binary files within a Paradox 7 database. I have created the database using the Database desktop and set the field type as Binary. However, when I try to copy the file into the Binary field, I get a stream write error.
Here's the code I am using:
Var stmData: TStream;
stmFile := TFileStream.Create('C:\COMMAND.COM', fmOpenRead);
stmData := tbProducts.CreateBlobStream(tbProducts.FieldByName('Data'), bmReadWrite);
What am I doing wrong??
Thanks for any help,