Image: poster of local disk, download server and display the server file system

Hello

I use jdev 11.1.2.4.0...

The requirement is that users want to upload images to their local drive for the drive on the server and they would like display of server disk images later.

We do not want to save the images in the database. I'm not sure what should be the solution; However, I intend to...

1 create a table to keep information from images - image_id, image_location (server drive), image_filename

2. create a page where users can enter image information and specific file on a local disk name (I think I'll use inputFile component) and provide the Preview button to display an image on the screen before saving. To record data is to save the information in the database and copy an image file on the disk on server (the location for image files is predefined.)

3. create another page where users can browse the database information and display an image for a selected record getting from the server.

I need suggestions on...

1. how to display an image on the page of the local drive?

2. how to copy a file on a local disk to a server?

3. how to display an image on the page of the drive on the server?

Thank you.

NAT

See:

http://tompeez.WordPress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-ADF-part-1/

http://tompeez.WordPress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-ADF-part-2/

http://tompeez.WordPress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-ADF-part-3/

When Timo records the images in the database, you save it in the file system (examples on how to do this Java are available much if you just Google for it). Similar to Timo you then use the tag image to display pictures. The difference is that you can directly add the URL of the database table.

The advantage of using a database to host images, it's that you're not although dependent on files server structures

Frank

Tags: Java

Similar Questions

Maybe you are looking for