Skip Headers

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

Part Number B10119-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

CopyToFile Method

Applies To

OBlob

OClob

OBfile

Description

Copies a portion or all of the internal LOB value of this object to the local file. File will be in the same format as the NLS_LANG setting.

Usage

void CopyToFile(const char *filename, unsigned long amount, unsigned long chunksize, unsigned long offset = 1) const throw(OException)

Arguments
Description
filename
A string specifying the absolute name and path for the file to be written to.
amount
An integer specifying the maximum number to be copied, in bytes for OBlob objects, or characters for OClob objects, .
chunksize
An Integer specifying the size in bytes for each write operation. This can range from 1 to amount. The optimal size for this will be a multiple of GetOptimumChunkSize.
offset
An integer specifying absolute offset of the LOB or BFILE value of this instance. Default value is 1. In bytes for OBlob objects and characters for OClob objects.
Remarks

If the file exists, its content is over-written.

File will be in the same format as the NLS_LANG setting