Oracle® Objects for OLE C++ Class Library Developer's Guide 10g Release 2 (10.2) B14308-01 |
|
Applies To
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
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. |
If the file exists, its content is over-written.
File will be in the same format as the NLS_LANG setting