Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Using BLOBs in OCI

Using BLOBs in OCI

From: BARAK <eyal_at_siriustech.com>
Date: Mon, 12 Jul 1999 09:45:19 +0300
Message-ID: <37898f22.0@news.barak.net.il>


Hi,
I have this problem:

I'm using OCI combined with PRO C.

I'm using "OCILobWrite" OCI function to put a BLOB data, but keep getting a (-2)
return code. (BAD HANDLE).

cc=OCILobWrite(oschp,errhp , ez_blob, &ez_len, (ub4) 0,

(dvoid *)buf, (ub4) ez_len, OCI_ONE_PIECE,
(dvoid *) 0,
(sb4 (*)(dvoid *, CONST dvoid *, ub4 *, ub1 *)) 0,
(ub2) 0, (ub1) SQLCS_IMPLICIT);

There are 3 handle: oschp which is the service context.

                                     errhp is the error handle.
                                     ez_blob is the blob identifier.
All three were allocated as shown in examples.

can anyone help?

Eyal. Received on Mon Jul 12 1999 - 01:45:19 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US