Sir can you please send me an example to upload an image to the server (with user defined file name and display message if name exist) at specific folder "images" and save its path to the mysql database. And again display the images uploaded on the server folder by using the path which is stored in database.
Sir i am able to upload image on server specific folder or the image directly in database in bolb datatype but i become failed to store its path in database and fetch the uploaded image using the path in database. So please guide me.

8 Years
Discussion Span
Last Post by caxtitus
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    <%@taglib uri="http://www.springframework.org/tags/form" prefix="s"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
        <table align="center">
            <tr style="height: 60px">
                <td style="width: 100px;" align="left">File Id</td>
                <td style="width: 100px;" align="left">File Name</td>
                <td style="width: 100px;" align="right">File</td>
            <c:forEach var="file" items="${allfiles}">
                <tr style="height: 44px; width: 522px;">

                    <td align="left">${file.id}</td>
                    <td align="left">${file.filename}</td>
                    <td align="right"><img src="/images/imagesCA6XMXN1.jpg"
                        height="150px" width="120px"></td>

This is my jsp page through which i just try to print more images from my Server \WebContent\images folder but the images are not getting print into jsp page

Help me to Overcome this

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.