使用spring MVC显示来自DB的图像 [英] show image from DB using spring MVC

查看:70
本文介绍了使用spring MVC显示来自DB的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在任何地方都有关于如何使用Spring MVC显示存储在数据库中的图像的示例吗?我想看看如何编写控制器以及如何编写JSP以显示图像.这是为了显示图像,而不仅仅是下载图像.

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.

推荐答案

您有一些基于示例spring mvc应用程序图像Db的信息:

You have some infos based on the sample spring mvc application Image Db:

http://www.roseindia.net/tutorial/spring/spring3/web/spring-3-mvc-fileupload-example.html

http://www.java2s.com/Code/JavaDownload/Spring-imagedb.zip

希望有帮助.

这篇关于使用spring MVC显示来自DB的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆