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.

Blob Class<br />

getStream()<br />

isInitialized()<br />

isNull()<br />

This method returns a Stream object from the BLOB. If a stream is already open, it<br />

is disallowed to open another stream on Blob object, so the user must always close<br />

the stream before performing any Blob object operations.<br />

Syntax<br />

Stream* getStream(unsigned int offset = 1,<br />

unsigned int amount = 0);<br />

Parameters<br />

offset<br />

The starting position at which to begin reading data from the BLOB.<br />

Valid values are:<br />

Numbers greater than or equal to 1.<br />

amount<br />

The total number of consecutive bytes to be read. If amount is 0, the data will be<br />

read from the offset value until the end of the BLOB.<br />

This method tests whether the Blob object is initialized. If the Blob object is<br />

initialized, then true is returned; otherwise, false is returned.<br />

Syntax<br />

bool isInitialized() const;<br />

This method tests whether the Blob object is atomically null. If the Blob object is<br />

atomically null, then true is returned; otherwise, false is returned.<br />

Syntax<br />

bool isNull() const;<br />

8-16 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!