Results 1 to 5 of 5

Thread: How to serve images from DB to be used in SRC attribute

  1. #1

    Default How to serve images from DB to be used in SRC attribute

    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 :?:

  2. #2
    Join Date
    Aug 2004
    Location
    London, UK
    Posts
    339

    Default

    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

  3. #3

    Default

    Ahhhh....great. I will try that

  4. #4

    Default

    Hi could you guys show us a workign example?

    thx
    Jürgen PENNE
    consultant
    BVBA ELTROVO

  5. #5
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    You may review the imagedb sample from the spring main distribution ImageController#streamImageContent().

    HTH.
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

Similar Threads

  1. Replies: 1
    Last Post: Jul 28th, 2005, 05:08 PM
  2. stale Oracle processes
    By compostellas in forum Data
    Replies: 7
    Last Post: Jun 27th, 2005, 12:14 PM
  3. Proposal for Object Graph Assembler
    By garpinc2 in forum Web Flow
    Replies: 6
    Last Post: May 11th, 2005, 10:37 PM
  4. MBeanClientInterceptor assumes lower-case Attribute names
    By Joris Kuipers in forum Container
    Replies: 10
    Last Post: Mar 31st, 2005, 09:18 AM
  5. Replies: 2
    Last Post: Sep 5th, 2004, 10:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •