Also zur Erklärung, es hat schon vorteile ein File direkt in die DB zu schreiben und außerdem erfordert es meine Aufgabenstellung!
Also ich habe folgenden Lösungsansatz:
$filehandle = fopen($_FILES['bild'][tmp_name],'rb');
$filedata = addslashes(fread($filehandle,$_FILES['bild'][size]));
//you must make it compatable with the string type of the query...
$typ=$_FILES['bild'][type];
$s=OCIParse($logon, "insert into T_MITARBEITER (BILD) values ('$filehandle') where M_ID=$out_id");
OCIExecute($s, OCI_DEFAULT);
Bevor diese Transaktion ausgeführt wird, schreibt eine PL SQL Procedure ein empty blob() in das Feld BILD.
mein Problem jetzt: wenn ich die ganze Gschicht ausführe, bekomme ich folgende Fehlermeldung:
Warning: ociexecute(): OCIStmtExecute: ORA-00933: SQL command not properly ended in /usr/local/apache2/2.0.49/htdocs/pm/pm/register.php on line 65