annotated imagedb

Last modified: $Date: 2005/04/06 07:15:38 $

Annotated imagedb

Imagedb is a example from spring framework.

Motivation

Demostrate how to retrieve picture from database and display it on pages.

Implementation

FileUpload.

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.

Deployment

Integrate this functionality with other web application as a image engine.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章