|Oracle® interMedia Java Classes Reference
10g Release 1 (10.1)
Part Number B10830-01
public void export (byte[ ] [ ], ctx String srcType, String srcLocation, String srcName)
Exports the data from the BLOB specified by the localData attribute. This method calls the corresponding export( ) method in the database to export the image data to a location specified by the srcType, srcLocation, and srcName parameters.
Not all source plug-ins support the export( ) method. For example, the "file" source type is the only Oracle-supplied source type that supports the export( ) method.
This method will work only if you are running Oracle release 8.1.7 or later.
The remainder of this description describes the use of the export( ) method and the Oracle-supplied "file" source plug-in. User-written plug-ins will behave differently.
The export( ) method implemented by the Oracle-supplied "file" source plug-in copies, but does not modify, the media data stored in the database BLOB specified by the localData attribute.
After exporting the image data, all the image property attributes remain unchanged, however, the srcType, srcLocation, and srcName attributes are updated with values of the srcType, srcLocation, and srcName parameters passed to the export( ) method. After calling the export( ) method, if you no longer intend to manage the image data within the database, call the clearLocal( ) method to indicate the image data is stored outside the database and call the deleteContent( ) method to delete the image data stored in the database BLOB.
See Oracle interMedia Reference for information about the privileges required to write to a database directory object. See Oracle Database Java Developer's Guide and the java.io.FilePermission class in the Java API for information about security and performance.
The source plug-in context information.
The source type to which the content will be exported.
The source location to which the content will be exported.
The source name to which the content will be exported.
This exception is thrown if an error occurs executing the corresponding export( ) method in the database.