ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: How do i fetch a BLOB via AbatorDAO without reading the whole BLOB into memory
Date Thu, 29 Jun 2006 12:50:22 GMT
iBATIS doesn't support this directly, it's default BLOB handlers turn the
BLOB into a byte[] (read the whole BLOB into memory).  That's why Abator
generates a byte[] for a BLOB.

You could make this work differently by using a row handler, or a custom
type handler, but Abator doesn't support those features of iBATIS so you're
on your own to write the sql statement and the collateral objects.

Jeff Butler


On 6/29/06, Geoff Hollingworth <eusholli@hotmail.com> wrote:
>
> normally i would fetch direct to the db with the rs and getBinaryStream
> type
> methods.
> or should i not be worried about running out of memory because something
> clever is being done i do not understand, cannot see
> thanks
> /geoff
>
>
>

Mime
View raw message