ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanjay Goel <sanjay.g...@gmail.com>
Subject Problem with BLOB
Date Mon, 19 Sep 2005 12:39:38 GMT
I am trying a save a String in an oracle BLOB object (I know String can be 
mapped to CLOB, but lets say I can't use CLOB) ...
I have a VO with a field as byte [] which is mapped to the BLOB. I do a 
String.getBytes() to get the byte array and save it in BLOB and retrieve it 
using new String(byte []) ...
the problem is, the string returned is garbage. Anyone has an idea why this 
happens ?

View raw message