Is there an example anywhere on how to display an image stored in a DB using spring MVC? I want to look at how controller is written and also how a JSP is written to show the image. This is to show the image, not just download it.
Share
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.
You have some infos based on the sample spring mvc application Image Db:
http://blog.springsource.com/2007/11/14/annotated-web-mvc-controllers-in-spring-25/
http://www.roseindia.net/tutorial/spring/spring3/web/spring-3-mvc-fileupload-example.html
http://www.java2s.com/Code/JavaDownload/Spring-imagedb.zip
Hope it helps.