Hello ranchers.
I'm developing an application using Apache Turbine + Torque and Oracle 10g for my DB and am encountering this error:
java.sql.sqlexception data size bigger than max size for this type.
I've searched it in Google and everyone says that
you should use a BLOB type instead of a LONG RAW, but my problem is that I'm using BLOB to store a 17k image in the database. My code is as follows:
I have trimmed the rest of it as it is non-relevant, but the basics are there. I'm using a Torque object (entryIntratImagenes) to save into the database, and am getting the image bytes through a regular SQL Query.
My table is as follows:
What could be wrong? Why is it telling me the max size for BLOB is not big enough to save 17k bytes?
Thanks a lot!