sameeraict 3 Newbie Poster

Hi,
i'm trying store an image in my sql database . i 'm using java to manipulate it .i 'm able to manage the image store in the database,but i don't know how to retrieve it back to my user interface. can some one help me to do this.

//sample code

File image = new File("C:/ima/e3.jpg");
psmnt = connection.prepareStatement
("insert into image(id,name, city,image, telno) "+ "values(?,?,?,?,?)");
psmnt.setString(1,"3");
psmnt.setString(2,"thilini");
psmnt.setString(3,"matara");

psmnt.setString(5,"0773942356");
fis = new FileInputStream(image);
psmnt.setBinaryStream(4, (InputStream)fis, (int)(image.length()));

int s = psmnt.executeUpdate();
if(s>0) {
  System.out.println("Uploaded successfully !");
 }
else {
System.out.println("unsucessfull to upload image.");
  }