Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDBCResultSet::getBlob ( P6UINT32  index,
P6UINT8 pBlob,
P6UINT32  cBuffer,
P6UINT32 pWritten 
)
pure virtual

Return the value of the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with an untyped chunk of bytes.

For Postgresql8, use this method to bind to the postgres 'bytea' type since 'blob' types are not directly supported. This method will decode any octal encoded characters into their binary values (e.g., from '\000' to zero, '\134' to 92).

Parameters
index[ in ] Starts at 1, count from left to right of parameter in prepared statement to extract
pBlob[ in ] Pointer to a buffer to copy the buffer into, when NULL the required size is returned in pWritten
cBuffer[ in ] Number of entries in the buffer pointed to by pBlob.
pWritten[ out ] Optional can be NULL, returns the number of bytes written into pString. This parameter cannot be NULL when pBlob is also NULL.
Returns
SuccessP6R::eOk 
FailureP6R::eNoMemoryInsuffficient memory to properly initialize the component
P6R::eInvalidArgpLength is NULL.
P6R::eTooSmallpBlob buffer is too small for the requested data.
P6R::eTooBigThe index is greater than the last valid parameter to extract.
P6R::eValueNULLBlob has a null value.