Oracle Objects for OLE C++ Class Library
Release 8.1.7

Part Number A85258-01

Library

Product

Contents

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.

Usage

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

Arguments

filename
A string specifying the absolute name and path for the file to be written to.
amount
An integer specifying the maximum number of bytes or characters to be copied.
chunksize
An Integer specifying the size 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.
Remarks

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


 
Oracle
Copyright copy; 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents