I have some problems with reading BLOBs from an ADABAS D
database (Workgroup Edition Solaris) using the JDBC driver
from Software AG.
I am able to insert BLOBs into the database, but when I try
to read the BLOBs from the database the following problems occur:
- reading the BLOB with getBinaryStream:
If the BLOB contains bytes, which have the byte code 255, the
read() method returns -1 instead of 255. As this indicates the end of
a stream, the reading processes is stopped at the first
occurrence of byte code 255. And this is not the desired
- reading the BLOB with getString:
In this case, almost the whole BLOB is retreived, only the last
character is missing. This error occurs only for BLOBs which
end with a newline character.
Does anyone have an explanation for this behaviour ? Is it an error
of the JDBC driver or do I have to check any other flags or
values to recognize the correct length of a BLOB ?