|Oracle® interMedia Java Classes Reference
10g Release 1 (10.1)
Part Number B10830-01
public boolean loadDataFromFile(String filename)
Loads data from a file into the database BLOB specified by the localData attribute. Before loading the data, this method calls the deleteContent( ) method to delete any existing data in the BLOB. It also calls the setLocal( ) method to set the local flag. In addition, this method calls the setUpdateTime(Timestamp) method to set the updateTime attribute to the current SYSDATE time.
The name of the local file from which the data will be loaded.
This method returns true if the data is loaded successfully; otherwise, an exception is raised if an error occurs. This method never returns false.
This exception is thrown if an error occurs accessing an object attribute or executing a method in the database.
This exception is thrown if an error occurs reading the data file.