Budi, don't use a place outside the scope of your application to store the images. When uploading your file, give a relative math to a folder in your application. If you post your source code, then it would be easier to help you.
If indeed you use a folder outside the scope of your application, then you need to create a servlet which will serve the images to clients on requests...
Thats fine to place images outside the application. Suppose, you have lot of images uploaded by users, consider those as user's data, and more are on the way. It simply means you use file system, instead of database, to store user's uploaded images, which is perfectly fine and have some advantages too that outweighs the disadvantages. Another point is, replacing the application war file with a new version, would result in loss of data, otherwise. Further, placing it somewhere else will even make backup/recovery less troublesome.
posted 11 years ago
And yes, please post the exceptions, if any you are getting.