mardi 9 juin 2015

Java EE and pictures

I am still learning Java EE and I am facing a problem on how to display pictures.

Let me explain myslef.

I have a database which contains a table "File" that has the path and name of several files. (all .JPG at the moment).

I would like to display them on the application, so I put them on a folder imgs in my app.

The problem is, they aren't shown on the screen. So I redeployed the app and then they appeared.

But the problem is, the table "File" is dynamically filled, and the file folder too. This means that the application needs to be redeployed everytime a new file appears. So, I need to access the files without having to redeploy my app, or I have to automatically redeploy my application.

What is the best way to do that, and how should I do ?

Thank you

Aucun commentaire:

Enregistrer un commentaire