Hi,
I need JSP same codes for learning to get image which is stored in MySQL Database.
How to retrieve image from mysql database in JSP?
Thanks
Hi,
You can write SQL query to find the data from database and get the image from resultset using the stream.
Once image data is retrieve you can send the data to client browser. This way you can achieve the functionality of retrieving image from database and displaying in JSP.
Check this tutorial for source code example: Download images from Database in JSP.
Thanks
Ads