This is a bunch of tips and techniques related to Oracle PL/SQL and Forms.
Purpose
When you want to load images from the client machine to the database, you would like
to choose the right image file with a preview of each image.
This is a Javabean component that allows to display a JfileChooser dialog box with image preview.
It also allows to display at the same time different file types.

The java code
Get the complete code here
Forms configuration
Registring the bean
- Open the form
- Add a javabean component to any block
- Register the bean (be sure that it is not in a When-New-Form-Instance trigger, or use a timer)
FBean.Register_Bean('BLOCK.BEAN_ITEM',1,'oracle.forms.fd.GetImageFileName');
Invoke the bean's GetFile() function
image_file_name := FBean.Invoke_char('BLOCK.BEAN_ITEM',1,'GetFile','"Dialog box title","start directory"');
e.g.
:BL1.File := FBean.Invoke_char('BL1.IMAGEPICKER',1,'GetFile','"Select an image file name","M:\"');
The sample dialog