ADO + PostgreSQL + BLOB fields !!!
From: Nikola (zjolovic_at_ptt.yu)
Date: 12/15/04
- Previous message: Ray Porter: "Re: Where is Delphi help for ADO gone ?"
- Next in thread: J West: "Re: ADO + PostgreSQL + BLOB fields !!!"
- Reply: J West: "Re: ADO + PostgreSQL + BLOB fields !!!"
- Reply: Brian Bushay TeamB: "Re: ADO + PostgreSQL + BLOB fields !!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 15 Dec 2004 05:30:21 -0800
How can I extract file from BLOB field using ADO components?
I've managed to insert file into database with the following
code:
ADOQuery1.Parameters.AddParameter.Name:='MyFile';
ADOQuery1.Parameters.ParamByName('MyFile').LoadFromFile('d:\SomeFile.txt',ftBlob);
ADOQuery1.SQL.Add('INsert INTO public."MyTable" (MyField) VALUES (:MyFile)');
ADoQuery1.ExecSQL;
I would be gratefull for any help...
Nikola
- Previous message: Ray Porter: "Re: Where is Delphi help for ADO gone ?"
- Next in thread: J West: "Re: ADO + PostgreSQL + BLOB fields !!!"
- Reply: J West: "Re: ADO + PostgreSQL + BLOB fields !!!"
- Reply: Brian Bushay TeamB: "Re: ADO + PostgreSQL + BLOB fields !!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|