This Oracle tutorial explains how to use the Oracle/PLSQL BFILENAME function with syntax and examples.
The Oracle/PLSQL BFILENAME function returns a BFILE locator for a physical LOB binary file.
The syntax for the BFILENAME function in Oracle/PLSQL is:
A directory object that serves as an alias for the full path to where the file is located on the file server.
The name of the file on the file server.
The BFILENAME function returns a BFILE locator.
The BFILENAME function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle BFILENAME function examples and explore how to use the BFILENAME function in Oracle/PLSQL.
For example:
First, we need to create a directory object called exampleDir that points to /example/aodba on the file server.
Then we can use the exampleDir directory object in the BFILENAME function as follows: