Abstract:
There is an input File competent in JSPX page where the user can select a file to upload. The user will press a Save button to store file in the database.
Work Flow:
When the user select the file to upload the
valueChangeListenerwill be called.In the
valueChangeListenerI am storing the file into local variable of typeUplodedFile. I am able to access all file property from this variable in thevalueChangeListener; that is, I can access the file name, size,... form the local variable within thevalueChangeListener.When the user press the
Savebutton a method tocommitthe changes is called.In the
commitmethod I am getting the file data from the local variable that hold the file data.
The problem is:
This local variable that should store the file data is always NULL. I have no idea why this variable does not contain the file data although I set its value in the valueChangeListener.
Note:
I tried to bind the input File competent to a local variable and again it gave me the same result NULL value.
I am using ADF Technology JDeveloper 11.1.2.3
You have to process the data inside the value change listener as it's only present during the request. The file data is removed after the request.