Re: Where to store image files in Java web app



Lew wrote:
jstorta wrote:
The bloat is application bloat. The application WAR is approaching
1GB in size. Of that, maybe 1MB is the application and the rest of
the space is the image files.

Every time I modify the app and have to redeploy it, it has to copy
and extract all of those image files even though they never change.
This adds significant time to the redeploy process.

Not to mention, transferring the large WAR file across a network to
the production system is quite slow because of the size.

I look at it the same way as if someone said you have to store all of
your Excel files inside the Excel application folder. That would be
crazy. Here I have images that are opened by my web app, but they are
not part of the app. I think I should be able to store them anywhere
I want. I just need to figure out the best way to do it.

My point is that if you need those images in the new deployment, you'd have to transfer them anyway. If you don't, then you don't need to transfer them even if they're in a WEB-INF/ subdirectory.

If you don't want the images in the redeployment, why are you including them?

It seems as if the images are data not application.

And data does not belong with the app.

The problem with using a server-local file system outside the application tree of a Web app is that it is not portable. You are only safe using subdirectories in the application context. You should not depend on anything outside of that in the web app.

For a product that need to support multiple OS and multiple app
servers without problems that is very good advice.

If it is for a custom solution, then using a dir outside the app
server may work fine. If the company changes OS or app server, then
checking this is part of the migration work.

Arne
.



Relevant Pages

  • IE Component broken in SBS2003
    ... I recently rebuilt a SBS2003 server, and after installing all the latest ... images in the Server Management app. ... though the app functionality seems to be unaffected. ... this is a screenshot of the OWA logon screen when ...
    (microsoft.public.windows.server.sbs)
  • Re: How to upload files from PPC to WebServer..???
    ... I am developing the App on PPC ... .It have a take images function. ... insert there images to DB server. ... > Please help me how to upload files from PCC to webserver (not use ...
    (microsoft.public.pocketpc.developer)
  • Re: Images not appearing when site is published
    ... Open the site live, and browse to your images folder, see if those image files really exist on your server. ...
    (microsoft.public.frontpage.client)
  • Re: Images not appearing when site is published
    ... They need to be in a folder INSIDE your web, ... > These images do reside in the images folder on my HD. ... > see if those image files really exist on your server. ...
    (microsoft.public.frontpage.client)
  • Re: Images not appearing when site is published
    ... These images do reside in the images folder on my HD. ... see if those image files really exist on your server. ...
    (microsoft.public.frontpage.client)