Skip Headers
Oracle® Objects for OLE C++ Class Library Developer's Guide
10g Release 2 (10.2)

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

EnableStreaming Method

Applies To

OBlob

OClob

OBfile

Description

Enable streaming on LOB operations.

Usage

void EnableStreaming(unsigned long totalamount, unsigned long initialoffset = 1) const throw(OException)

Arguments

Arguments
Description
totalamount The total amount to be read or written for multiple chunk read and write operations (in streaming mode).
In bytes for OBlob. For OClob, in characters for reading, in bytes for writing.
initialoffset
The offset into the LOB that reading or writing will begin with. The default value is 1. In bytes for OBlob, characters for OClob.

Remarks

Streaming mode provides the best possible performance and allows you to use a small buffer for read and write methods. Read and write operations will stream data starting at initialoffset until totalamount has been read or written. Read and write operations must be repeatedly called until the read or write is complete, meaning that the streaming may not be aborted.

See DisableStreaming.