File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Data size bigger than the max size for this type; Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Data size bigger than the max size for this type;" Watch "Data size bigger than the max size for this type;" New topic
Author

Data size bigger than the max size for this type;

grace chow
Greenhorn

Joined: Oct 25, 2004
Posts: 13
Dear ,
When I insert data into blob and long raw field of oracle database table.
always having the error:
java.sql.SQLException: Data size bigger than max size for this type:

I am using Oracle 9i. and I know that my program code in Oracle 8 is fine without any error..
Therefore, the problem occurs in Oracle 9i. Do you have any suggestion that I have to modify my program code in order to fit the Oracle 9i.

Thanks,
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

LONG RAW is a legacy data type in Oracle. Use an appropriate LOB datatype instead - LONGs can store 2GB, LOBs can store 4GB (plus there are other good reasons for favouring LOB over LONG RAW, which you will be able to read about in the Oracle documentation).


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
The best reason of using LOB over LONG RAW is, you can only have one column of type LONG RAW in your table, on the other hand LOB is not like that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Data size bigger than the max size for this type;