I am writing code in which i am reading blob image from database and want to show that image on my jsp page .
through google i find out the solution that , byte[] can be converted to buffered image
but how can i use buffered image on jsp page…?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest is to send your image with a servlet or a different jsp.
If you use a JSP, be careful to simply send your binary without any html (or blank line). Like this for example :
(here using javax.imageio.ImageIO)
Then you can simply use the image like this :