Code: Select all
SQL> desc CEC.customerItemBook
Nom NULL ? Type
----------------------------------------- -------- ----------------------------
ID NOT NULL NUMBER(10)
REF VARCHAR2(50)
VERSION NOT NULL NUMBER(2)
EXT VARCHAR2(10)
FILECONTENT BLOB
SQL> insert into CEC.customerItemBook values (3,'ABC',1, null, null);
1 ligne créée.
SQL> commit;
Validation effectuée.
SQL>
Code: Select all
UPDATE CEC.customerItemBook SET ext=:1, filecontent=:2 WHERE ID=:3
Code: Select all
q->Params->Items[0]->AsString=L"pdf";
q->Params->Items[1]->AsOraBlob->LoadFromFile("X:\toto.pdf");
q->Params->Items[2]->AsInteger=3;
q->ExecSQL();
1. If PDF file is opened (even read-only in acrobat reader), I get an exception during the LoadFromFile, that seems to need an exclusive access,
2. IF PDF is closed, I get an ORA-22275. I tried also
Code: Select all
q->Params->Items[1]->AsBLOBLocator->LoadFromFile("x:\toto.pdf");
Any hint to avoid these 2 problems?
Regards,
Alain