Home » Developer & Programmer » JDeveloper, Java & XML » blob read error
blob read error [message #366651] Sat, 24 June 2000 21:51
Andrew
Messages: 144
Registered: March 1999
Senior Member
I am using JDK 1.2, oracle jdbc,
ResultSet rs_i = stmt_i.executeQuery("select * from rep_images");
while (rs_i.next())
{
oracle.sql.BLOB blob = (BLOB)rs_i.getObject (2);
......

InputStream instream = blob.getBinaryStream();
byte[[]] buffer = new byte 100;int length = -1;
while ((length=instream.read(buffer)) != -1) <- ERROR
{ }

java.io.IOException: ORA-21560: argument 2 is null, invalid, or out of range
ORA-06512: at "SYS.DBMS_LOB", line 640
ORA-06512: at line 1

Please shed somelight on this.

Thanks

andrew
Previous Topic: JSP jswdk 1.0.1 server problems
Next Topic: web application
Goto Forum:
  


Current Time: Thu Aug 05 00:52:15 CDT 2021