What i did is: i have created a folder inside the same project, named it images, then i give a user an option to upload the image, when you upload the image, it takes the image and save it in the folder and take the image(file) name and store it into a database eg: my project name is support, inside support folder i have image folder which is @ c drive and the image name is lordkwena.gif, so in the in the database i am gonna have c:\\support\\image\\lordkwena.gif. so after a user has logged in it collects the information from the database including the image. i have created a method so that i will access it when ever i want. here is the method:
public void setImageI(String imageIc)
{
image=imageIc;
}
public String getImageI()
{
return image;
}
Hope you know what is happening here.
ResultSet rs = state.executeQuery(Query);
if(rs.next())
{
main.setName(rs.getString(4));
//plz note that main is: static className main = null; meaning i have decleared a static className main to create an instance for my class
}
so rs.getString(4) this will collect the infornmation form the database.
cos i was using java, i displayed the image on a label: lblImage.setIcon(new ImageIcon(imagename));
//declaring imagename
private String imagename="";
//Initialising imagename
imagename=main.getImageI();
Hope this helps, let me know if you have a problem.