Thanks for the replies. I finally got it using basically the code whosrdaddy supplied.
Here is what mine looks like:
procedure TForm1.Button2Click(Sender: TObject);
var
fs: TFileStream;
BlobField: TBlobField;
begin
fs := TFileStream.Create('C:\Line-Card.pdf', fmOpenRead);
ADOQuery1.SQL.Text...
I've tried putting the post there, I was thinking the same thing. But when I do that it raises an exception saying that the dataset is not in edit or insert mode.
Don't quite understand that one since a few lines up it is being told to go into edit.
Thanks,
kiddjr
I'm trying to insert a pdf file into a blob field within mysql. When I run the following code I get no compiler errors, it just doesn't write any data to the database.
procedure TForm1.Button1Click(Sender: TObject);
var
ReadFile: TFileStream;
BlobField: TBlobField;
BS: TStream;
begin...
I have a project I am working on where I am measuring the width of 25 wooden boards and loading them into an array. Now what needs to be done at this point is lets say I need to pick out of the array the boards whose measurements would make a panel 18 inches wide.
I've got some ideas where I...
I am trying to distribute a small application to another computer using the Install Shield that comes with Builder. When I try to launch the application after the install it's barking about not having BORLANDMM.dll. I can't seem to find this file anywhere. Could someone point me in the right...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.