in Oracle...
in Php3 manual, I found it.
But it didn't work .
I just got an error message below.
....
ORA-22990: LOB locators cannot span transactions
I never know why.
Please, give me some advices.
My reference from php manual follows..
Line 23 got error.
$conn = OCILogon($user, $password);
19 $lob = OCINewDescriptor($conn, OCI_D_LO😎;
20 $stmt = OCIParse($conn,"insert into $table (id, the_blob) values(my_seq.NEXTVAL, EMPTY_BLOB()) returning the_blob into :the_blob");
21 OCIBindByName($stmt, ':the_blob', &$lob, -1, OCI_B_BLO😎;
22 OCIExecute($stmt);
23 if($lob->savefile($lob_upload)){
24 OCICommit($conn);
25 echo "Blob successfully uploaded\n";
26 }else{
27 echo "Couldn't upload Blob\n";
28 }
29 OCIFreeDescriptor($lob);
30 OCIFreeStatement($stmt);
31 OCILogoff($conn);