Thanks, it worked. Now I know what the message "Consider using Oracle9i as OJB platform" should have told me ;-).
Frank -----Ursprüngliche Nachricht----- Von: Danilo Tommasina [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 4. November 2005 14:15 An: OJB Users List Betreff: Re: AW: How to store images Hi, as suggested in the error message that is shown, you should use the Oracle9i platform and not the Oracle platform. The old Oracle platform does not support BLOBs with length>2000, this was a limitation of the thin driver for Oracle 8. The platform Oracle9i does not have the above limitation and also includes extra enhancements, fixes and optimisations that apply to the Oracle 9i driver. I do not know how and if everything works correctly also with Oracle 10g, but I am confident that it will. ;) We are using Oracle 9i with the Oracle9i OJB platform and have no problem uploading BLOBs > 5 MB. bye danilo Hiller, Frank RD-AS2 wrote: > Hi, > > I'm using OJB 1.0.3, Tomcat 5.0.28 and Oracle 10g Rel2. > > When I try to save images I get > "org.apache.ojb.broker.PersistenceBrokerSQLException: SQLException during the > execution of the update (for a ...): Oracle thin driver cannot update BLOB > values with length>2000. (Consider using Oracle9i as OJB platform.)" > > The database field is BLOB, the JDBC type in field-descriptor is BLOB the > data type in Java class is byte[] as recommended by Bobby. > > Is this an OJB or an Oracle related problem? > > Frank > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality note: The information in this email and any attachment may contain confidential and proprietary information of Heidelberger Druckmaschinen AG and/or its affiliates and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may cause liability. In case you have received this message due to an error in transmission, we kindly ask you to notify the sender immediately and to delete this email and any attachment from your system. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
