Skip Headers

Oracle® Objects for OLE Developer's Guide
10g Release 1 (10.1)

Part Number B10118-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Feedback

Example: Accessing BFILE value

BFILE data can be read using Read metwhod. OraBFile allows piecewise read operation. Before reading the BFILE content, BFILE file should be opened using Open method.

NOTE: To add the required tables, run lob.sql in \OO4O\VB\SAMPLES\LOB.

Schema Description

Dim PartColl as OraBFile

Dim buffer As Variant

'Create a Dynaset containing a BLOB and a CLOB column

set part = OraDatabase.CreateDynaset ("select * from part",0)

Set PartColl = part.Fields("part_collateral").Value

'open the bfile for read operation

PartColl.Open

'read the entire bfile

amount_read = PartColl.Read(buffer)

'close the bfile

PartColl.Close