OracleBFile(OracleConnection, string, string)
This constructor creates an instance of the OracleBFile class with an OracleConnection object, the location of the BFILE, and the name of the BFILE.
Declaration
// C# public OracleBFile(OracleConnection con, string directoryName, string fileName);
Parameters
-
conThe
OracleConnectionobject. -
directoryNameThe directory alias created by the
CREATEDIRECTORYSQL statement. -
fileNameThe name of the external LOB.
Exceptions
InvalidOperationException - The OracleConnection is not open or has been closed during the lifetime of the object.
Remarks
The OracleConnection must be opened explicitly by the application. OracleBFile does not open the connection implicitly.
To initialize a BFILE column using an OracleBFile instance as an input parameter of a SQL INSERT statement, directoryName and fileName must be properly set.