Handling images/files in ADF (Part 4)

This is a continuation of my already three part series about handling files and images in JDeveloper. The first three parts guided through the hole process:

    Part 1 gives an overview of the sample application I’m going to build and how to set it up
    Part 2 shows how to upload a file, store it and download it back to the client
    Part 3 implements two techniques to show the data (image) on the user interface
    Part 4 backport of the sample to JDeveloper 11gR1
    Part 5 implements a technique to show the uploaded file right after upload without the need to commit first

There is one missing part, which is that the whole sample was built using JDeveloper using JSF2.0 components. Running the sample in newer JDeveloper 11.1.2.x versions in no problem (tested up to However I got a couple of questions asking hoe to run it using JDeveloper 11.1.1.x version.
The shown techniques are all version independent, so that you can used them in your own application, but have to build your own UI.

I decided to backport the sample to run under 11.1.1.x too.

Part 4 Sample build to run with JDeveloper 11.1.1.x.

The sample can be downloaded from the ADF EMG Sample side BlogUploadDownload._R1V3.zip.

11 thoughts on “Handling images/files in ADF (Part 4)

  1. Pingback: Handling images/files in ADF (Part 5) | JDev & ADF Goodies

      • Thank you very much
        I followed the instructions and download the sample application from part5
        and I ran it, it’s working 100%

        But when I applied it to my application and
        set autosubmit = true property to Inputfile the filename disappear with no action or error message except this

        thank you

      • Dear,
        I forget to tell you that am using UI Shell Template and pagefragments
        it’s show
        ” “

  2. Dear
    am using commons-io-2.04.jar

    Caused by: java.lang.NoSuchMethodError: org.apache.commons.io.FileUtils.getTempDirectory()Ljava/io/File;

    Caused by: java.lang.NoSuchMethodError: org.apache.commons.io.FileUtils.getTempDirectory()Ljava/io/File;

    java.lang.NoSuchMethodError: org.apache.commons.io.FileUtils.getTempDirectory()Ljava/io/File;

    thank you very much

    • Well, read part 5! This method is only available in a new commons io version. Please download the version used for part 5.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.