Hi to all experts,
i have one oppurtunity to get the blob image from mysql db and shown on jsp page with in <td>
for that i am writing ,
one BEAN class got getting and setting all the properties of a jsp page including image also.
when i come to jsp and putting content dynamically the remaining properties are perfectly appeared but not images ?? Why ?
I am creating a directory for each user inserting database image in my project/images folder .
For example, raju is a registered user and import some data along with image.
so,i create one folder for raju with in my project dynamically project/images/raju/img1
i am getting the img1 on server its con't create any folder and dont inssert any image.
please kindly help me out.
Bear Bibeault wrote:How are you inserting the image onto the page? Are you creating valid HTML?
yes, i have valid jsp page, With in that i want to insert the data ,
Let us take a sample example :
These information can store in mysql.
once you just enter the roll number >> retrive all the data of the particular student along with the image on to my jsp page with in the <table><td>..
for that i am using java bean, but it con't get the blob image.
how can i solve this issue.
BLOB type isn't quite the thing one would normally use to store large images.
Store the image in some path of your system.Then..
Just store this image path in your database (and not the actual image).
When you want to display an image on your webpage simply retrieve the path from your database and give this path in the <img> tag.
Example :an image is stored in following path: C:\Photos
then html code would be <img src="C:\Photos">