This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Meteor in Action and have Stephan Hochhaus & Manuel Schoebel on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Error inserting byte[] to Oracle BLOB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Meteor in Action this week in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Error inserting byte[] to Oracle BLOB" Watch "Error inserting byte[] to Oracle BLOB" New topic

Error inserting byte[] to Oracle BLOB

Manju Gannaboina

Joined: Mar 21, 2006
Posts: 1

I am getting an error when I try to insert a byte[] into BLOB column.
The error message is : [BEA][Oracle JDBC Driver]long (>4k) parameters are only allowed in the values list of simple insert/update statements

// below is the lines of code
private byte[] fileData;
PreparedStatement stmt = conn.prepareStatement("INESRT INTO test VALUES ( 1, ?)" );
stmt.setBytes(1, this.fileData);
int testIDID = stmt.executeUpdate();

Can anyone help me here.

Thanks in advance
I agree. Here's the link:
subject: Error inserting byte[] to Oracle BLOB