My application needs to upload image into oracle database server through a Procedure from PhP ..
I am able to upload image using the following code.
html file ....
<html>
<body>
<form name="sss" enctype="multipart/form-data" action="check.php" method="post">
<input type="file" name="inptfile">
<input type="submit" name="submit">
</form>
</body>
</html>
uploading php...
$s=OCIParse($c,"insert into files(id,imageData) values('60',EMPTY_BLOB()) RETURNING name INTO :blobdata");
$lob = OCINewDescriptor($c, OCI_D_LO😎;
OCIBindByName($s, ':blobdata', $lob, -1, OCI_B_BLO😎;
OCIExecute($s, OCI_DEFAULT);
$lob->savefile($_FILES['inptfile']['tmp_name']);
OCICommit($c);
oci_free_descriptor($lob);
oci_free_statement($s);
oci_close($c);
But i need to upload it calling a procedure. Pls help me .
thank you.