Parmetrized Query and Blobs
Posted: Fri 13 Jan 2006 10:33
using delphi 7 and oracle 10g / dbexpress oracle*net I would like to insert blobs bigger than 4K into a table.
I found some other users facing with this problems but there was no solutions to the topic. So I added to your blob-demo tool a button with the followinf code:
----
SQLQuery.Text := UPDATE ODAC_BLOB SET PIC=:PIC WHERE ID=1'
(row with ID = 1 exists by adding a big picture via the dataset)
SQLQery.ParamByName('PIC').LoadFromFile('c:\image.bmp', ftBlob);
SQLQery.ExecSQL;
----
well I know the databse can handle big pictures but if I try to insert pictrures > 4K there is nothing in the table ;o(((
The code was used for a long time with your exprtess driver for mysql and everything was fine...
thanx
alex
I found some other users facing with this problems but there was no solutions to the topic. So I added to your blob-demo tool a button with the followinf code:
----
SQLQuery.Text := UPDATE ODAC_BLOB SET PIC=:PIC WHERE ID=1'
(row with ID = 1 exists by adding a big picture via the dataset)
SQLQery.ParamByName('PIC').LoadFromFile('c:\image.bmp', ftBlob);
SQLQery.ExecSQL;
----
well I know the databse can handle big pictures but if I try to insert pictrures > 4K there is nothing in the table ;o(((
The code was used for a long time with your exprtess driver for mysql and everything was fine...
thanx
alex