Hi, in a previous mail you said > Castor allows u to map an byte[] to BLOB (bytea in postgres). in OJB if the standard mapping does not fulfill your expectations it is possible to use OJB's FieldConversion feature. See http://db.apache.org/ojb/repository.html#field-descriptor OJB was shipped with some standard FieldConversion classes. Maybe this will help you.
regards, Armin ----- Original Message ----- From: "Bj�rn Voigt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 18, 2003 12:01 PM Subject: Re: Problem with byte[] to bytea mapping > Christian Pesch schrieb: > > 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. > > In my last message I wrote some wrong, > > I tested the storing again with castor and ojb. > > I made 4 tests. > > 1. Store with Castor / Load with Castor successful > 2. Store with Ojb / Load with Ojb non successful > 3. Store with Castor / Load with Ojb non successful > 4. Store with Ojb / Load with Castor non successful > > select length(image_column) from images has in all cases > the same value. The data of all 4 rows looks same. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
