Bj�rn Voigt wrote:
If I store the object to database and get it back, the length of the byte[] is bigger than the original length.
Did you compare the original value and the written one? May be that gives a hint.
Hi Christian,
here are the sample files I use, test1.jpg was written to db using ojb
test2.jpg ist the result.
The length of the image is bigger then the original length, there goes something wrong during the insert. I used castor before with the same class and table, but there goes nothing wrong.
Castor allows u to map an byte[] to BLOB (bytea in postgres). I tried BINARY/VARBINARY/LONGVARBINARY in ojb, but I got this wrong byte[] back.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
