I have upload file via FTP in a directory, Now i am try to save that file into database and delete file in FTP Directory... Here is my code
$myimage = "C:\upload\satu.xml";;
$image = file_get_contents($myimage);
$content=addslashes($image);
$conn = oci_connect('ARTERI','password','192.168.1.1/Mutual');
$stid = oci_parse($conn, "INSERT INTO MMSHOSPITAL.HASIL_PEMERIKSAAN (ID, ID_REGISTRASSI, ID_UNIT_LAYANAN, CONTENT)".
"VALUES('1', '172', 'ACT', '".$content."') ");
oci_execute($stid);
oci_close($conn);
Help me please... that code is not work to save file in the table of my database..
CONTENTdefined? Is it LOB?