I want to insert the image to a database from the HTML page and also fetch the image from the database using a servlet in eclipse.
Actually you can do that, but i would like to advice to use server side uploading, better than adding your images or any file uploaded to the database.
you can check this answer How to insert images in blob in mysql table using only sql syntax (without PHP)?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.