cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist>
Subject Re: Howto drive response payload directly
Date Tue, 26 Oct 2004 18:22:38 GMT

On Oct 26, 2004, at 3:46 AM, Vadim Gritsenko wrote:

> Ugo Cei wrote:
>> Il giorno 26/ott/04, alle 08:54, Leszek Gawron ha scritto:
>>> Mark Lundquist wrote:
>>>> Hi,
>>>> I have a Java object persisted using Hibernate... it contains an 
>>>> image (java.sql.Blob) that I need to serve. I can get the object in 
>>>> flowscript, now I just need to stream out this data (e.g. 
>>>> "image.getBinaryStream()"). How can I do this?
>>>> Thanks,
>>>> /~ml
>>>> /
>>> I think you should implement a Reader or a new Source.
>> A Reader is the way to go.
> Existing ResourceReader and one of the existing sources reading data 
> from request attribute should work just fine in ths case. Probably, 
> flow attribute input module.
> Vadim\

Thx Vadim (and also Ugo for bringing this over from the users' list)... 
  I will check into this!

View raw message