Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1406
  • Last Modified:

ADO and Field Blob - Oracle

my application is ported to Oracle, but i found ADO doesn't support BLOB
data type in Delphi 7 and "Microsoft OLE DB Provider for Oracle".
it could use driver of oracle, but I want to use of the Microsoft.
how to solve this problem?


thanks
0
antenor
Asked:
antenor
1 Solution
 
kretzschmarCommented:
what about

TBlobField(Dataset.FieldByName('fieldname')).Loadfromfile('imagefilename',ftblob);
//instead of Loadfromfile -> LoadFromStream would be also possible

not sure syntax about the last ftBlob-param

meikl ;-)
0
 
antenorAuthor Commented:
the Problem this at the moment that I go to Open the DataSet
0
 
kretzschmarCommented:
>the Problem this at the moment that I go to Open the DataSet
what happens?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
antenorAuthor Commented:
if the instruction sql to possess a field CLOB/BLOB occurs an error when trying to give a Open.
0
 
kretzschmarCommented:
what dataset do you use?
is there any sql-statement in use?
0
 
KristaoCommented:
what !!!!!!!!! "found ADO doesn't support BLOB data type in Delphi 7" thats WRONG ADO supports it and i use them very often. And kretzschmars exsample should work.
0
 
Mohammed NasmanSoftware DeveloperCommented:
Microsoft OleDB provider for oracle doesn't support the BLob fields

you can use Oracle db provider instead of microsoft one, you can download it freely from oracle website

and you can use dbExpress instead of Ado, it's faster than ado, also using native oracle components like DOA or ODAC, will be the best solution
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now