How to serve images from DB to be used in SRC attribute in the <IMG tag? Is there a controller or a way that does not forward to a view but acts as a regular servlet writing the binary data from the DB to the output stream :?:
How to serve images from DB to be used in SRC attribute in the <IMG tag? Is there a controller or a way that does not forward to a view but acts as a regular servlet writing the binary data from the DB to the output stream :?:
your controller can handle a response directly any way you choose. Return null instead of a ModelAndView and the Dispatcher will understand.
Darren Davison.
Public Key: 0xE855B3EA
Ahhhh....great. I will try that
Hi could you guys show us a workign example?
thx
Jürgen PENNE
consultant
BVBA ELTROVO
You may review the imagedb sample from the spring main distribution ImageController#streamImageContent().
HTH.