10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

isOpen()<br />

length()<br />

open()<br />

operator=()<br />

This method tests whether the BLOB is open. If the BLOB is open, then true is<br />

returned; otherwise, false is returned.<br />

Syntax<br />

bool isOpen() const;<br />

This method returns the number of bytes in the BLOB.<br />

Syntax<br />

unsigned int length() const;<br />

This method opens the BLOB in read/write or read-only mode.<br />

Syntax<br />

void open(LobOpenMode mode = OCCI_LOB_READWRITE);<br />

Parameters<br />

mode<br />

The mode the BLOB is to be opened in.<br />

Valid values are:<br />

OCCI_LOB_READWRITE<br />

OCCI_LOB_READONLY<br />

Blob Class<br />

This method assigns a BLOB to the current BLOB. The source BLOB gets copied to<br />

the destination BLOB only when the destination BLOB gets stored in the table.<br />

Syntax<br />

Blob& operator=(const Blob &srcBlob);<br />

OCCI Classes and Methods 8-17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!