I want to upload a image from the client browser to the database of my web app.I am using <input type="file" name="img"> tag in my
jsp to get the file location.Then via my controller
servlet i want to upload the image to database.Well i guess for security reasons browser will not give me the actual path of the file on client machine.Is it possible to upload an image in such a way?If yes what will be the servlet code?If no what is the best alternative?