You would have to convert the BLOB to a String in a custom type handler.
On 5/4/05, Ming Xue <[EMAIL PROTECTED]> wrote: > I try to map BLOB to byte[] and it works, BUT the question is : > > How to map BLOB to String? and other possible java types? > > > -----Original Message----- > From: Brandon Goodin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 04, 2005 1:58 PM > To: ibatis-user-java@incubator.apache.org > Subject: Re: BLOB type handler > > This link may help you. We used to have a FAQ on our wiki that dealt > with it. But, recent transitions have removed it. > > http://www.mail-archive.com/ibatis-user-java@incubator.apache.org/msg01800.h > tml > > On 5/4/05, Ming Xue <[EMAIL PROTECTED]> wrote: > > DB is oracle 9i, I already have the code to read/write BLOB, the question > is > > how to plug in these code into the Framework? > > > > In the app, BLOB is used in multiple places : > > > > JDBC type Java Type > > BLOB String > > BLOB XML > > BLOB Java Object > > > > How should I use the Custom Type handler to handle these cases ? or there > > are other ways? > > > > thanks > > > > > > -----Original Message----- > > From: Brandon Goodin [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, May 04, 2005 12:48 PM > > To: ibatis-user-java@incubator.apache.org > > Subject: Re: BLOB type handler > > > > Depends on what database you are using and how their driver supports > > it. Please provide more information. > > > > Brandon > > > > On 5/4/05, Ming Xue <[EMAIL PROTECTED]> wrote: > > > I am doing some testing on Custom Type Handler, in my project, BLOB is > > > mapped to a "String" type java bean property, it seems the Framework > can > > > not set the value properly. Does the java bean property has to be > byte[]? > > > > > > thanks > > > > > >