ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From soussou97 <dbousse...@yahoo.fr>
Subject Re: Analyze of a Blob
Date Sun, 17 Sep 2006 15:49:51 GMT

Hi Clinton;

Yes I have mapped directly to a byte[] with iBATIS (no problem) => I get
well and correctly the blob via Ibatis.
But My question is how analyze the byte array for extracting the data which
Yes my blob  into the database is very big (about 20 Mo) but I must from of
these data to fill of the objects.
Why use directly jbdc instead of ibatis ? Ibatis is not adapted to treat the
blob of important size (performance problem) ?
Can you give me more details.


soussou97 wrote:
> Hi;
> I use Ibatis for getting a field BLOB I must transcribe the data which
> contains, for example: with the position from 0 to 10 I get of the dates,
> position 10 to 15 32-integer, etc... (with the constraint of the size of
> the BLOB which is very important). 
> I think of doing this: I have my attribute: 
> byte [ ] data;
> DataInputStream in = nex DataInputStream(new
> ByteArrayInputStream(data)) 
> Next, I use in.readFully(data, pos, len) to retreive the data.
> its the best implementation or not ? Have you a example ?
> Regards;

View this message in context: http://www.nabble.com/Analyze-of-a-Blob-tf2284043.html#a6351206
Sent from the iBATIS - User - Java forum at Nabble.com.

View raw message