I wouldn't use readFUlly() unless you know for sure the data is very small.  If so, you should be able to map it directly to a byte[] with iBATIS.

If the data is big, I'd suggest streaming it to a temporary file for use.  In this case, you might want to bypass iBATIS and use JDBC directly.


Cheers,
Clinton


On 9/16/06, soussou97 <[EMAIL PROTECTED]> 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#a6344974
Sent from the iBATIS - User - Java forum at Nabble.com.


Reply via email to