rendered paste bodytry
{
$stmt = $connexion->prepare("
INSERT INTO
PEPSISE_FICHIER_BRUT
VALUES
(
S_PEPSISE_FICHIER_BRUT.nextval,
'1',
'',
'',
'',
'testOliver',
:myblob,
'11/12/1981'
)
");
$fp = fopen($_SERVER['argv'][1], 'rb');
if ($fp)
{
debug_msg($fp);
}
else
{
debug_msg('file was not : OK');
}
$stmt->bindParam(":myblob", $fp, PDO::PARAM_LOB);
debug_msg('Creation de la requete : ');
debug_msg($stmt);
if($stmt->execute())
{
debug_msg('La requete a merdé : ');
debug_msg($connexion->errorInfo());
}
$connexion->beginTransaction();
$connexion->commit();
debug_msg('Fin et commit');
debug_msg(&$connexion);
}