One way which I can think you need to decide the path where you are going to save your image that will be pre defined. There are lots of Image upload free codes available which you can use to save your image in the directory. you can just store that image name in the DB. just append the image name with the pre defined path whn you retrieve the image.
Before every minute of action, there should be an hour of thought.<br />- Henry Ford
We're pleased to have you here with us in the JSP forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.