简体   繁体   中英

How to insert image into databse from html page file upload and fetch image from databse to html page, using servlet in eclipse

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM