Annotated imagedb
Imagedb is a example from spring framework.
MotivationDemostrate how to retrieve picture from database and display it on pages.
ImplementationFileUpload.
Blog object in sprint framework. How to add blog object to output stream?
- get blog object from database.
- use org.springframework.util.FileCopyUtils copy blog object to output stream object.
extend org.springframework.web.servlet.mvc.multiaction.MultiActionController to process image upload and list. And use MultiActionController that defines user interface actions as separate methods in xxx-servlet.xml to config MultiActionController.
separate domain and database operation.
Interface oriented programming. I believe interface is great.
DeploymentIntegrate this functionality with other web application as a image engine.