This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error inserting byte[] to Oracle BLOB

 
Manju Gannaboina
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Manju
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic