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
Success | P6R::eOk | |
Failure | P6R::eNoMemory | Insuffficient memory to properly initialize the component |
P6R::eInvalidArg | pLength is NULL. |
P6R::eTooSmall | pBlob buffer is too small for the requested data. |
P6R::eTooBig | The index is greater than the last valid parameter to extract. |
P6R::eValueNULL | Blob has a null value. |