Post
by Paul » Thu 09 Aug 2007 11:25
We do not have such example. You can use the one of the following cases to update CLOB, BLOB field. You can find information how to use other methods of OraLob, CRLob classes in OCL documentation.
void loadFromFile(OraQuery& query)
{
int id;
string fileName, title;
cout > id;
cout > title;
cout > fileName;
if (query.isActive())
query.close();
query.setCommandText(insertSQL);
query.param("ID").setInt(id);
query.param("TITLE").setString(title);
query.param("VALUE").setDirection(pdInput);
//query.param("VALUE").getClob().loadFromFile(fileName);
OraLob *lob = &query.param("VALUE").getClob();
char *s1 = "string data";
lob->write(0, strlen(s1), s1);
char *s2 = "string data1";
lob->setChars(s2);
CRString s3 = "string data3";
lob->setString(s3);
//lob.set
query.execute();
}