I am making a very simple website as my minor project, in which i will ask user to upload photo and save it in the BLOB field of my database.
I have created a form.
Now please help me how to fetche the image in servlet and store in BLOB field of Database.Code:
<form action="SavePic" method="post" enctype="multipart/form-data"
Please Upload Your Profile Picture
<input type="file" name="file" id="file">
<input type="submit" name="Submit" value="Submit">
I am stuck, please Help!!