ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Betto McRose Gamarra" <icaru...@gmail.com>
Subject BLOB / CLOB problems
Date Mon, 05 Jan 2009 11:54:13 GMT
hi all

I'm having problems retrieving a blob field from the db

I was looking at this link
but I'm using a JTA transaction so, that solution doesn't work for me

    <transactionManager type="JTA" >
        <property name="UserTransaction" value="java:comp/UserTransaction"/>
        <dataSource type="JNDI">
            <property name="DataSource" value="java:sgcDS" />

in my bean the pdfdata is defined like this
private byte[] pdfdata;

and in the xml file the resultmap is defined like this

<result property="pdfdata" column="pdfdata" jdbcType="BLOB" javaType="[B"/>

while persisting I have no problems at all, but retrieving I only got
the 86 bytes

what do I have to do ?

Betto McRose Gamarra
"Soluciones Informáticas"
Cel.: +595 992 686947

View raw message