Home » Developer & Programmer » JDeveloper, Java & XML » JDeveloper problem: OrgImage error when retrieving image
JDeveloper problem: OrgImage error when retrieving image [message #121285] Fri, 27 May 2005 07:36
Trainer
Messages: 1
Registered: May 2005
Location: Melbourne, Australia
Junior Member
Hi there,
Problem when compile in jDeveloper:
java.lang.NoClassDefFoundError: oracle.ord.im.OrdImage
i am having a problem retrieving an image from database when using the ordimage object as the code below demonstrates:
------------------------------


Class.forName("oracle.jdbc.driver.OracleDriver");
String url = "jdbc:oracle:thin:@XXXXXXX";
Connection conn=DriverManager.getConnection (url,"XXXXXXXX","XXXXXXXXX");

conn.setAutoCommit(false);
Statement stmt = conn.createStatement();

String exportSelectSQL = "select image from image_table where id = 2";

OracleResultSet rset = (OracleResultSet)stmt.executeQuery(exportSelectSQL);

rset.next();
//>>>>WHERE THE ERROR IS
OrdImage imageProxy = (OrdImage)rset.getCustomDatum("image", OrdImage.getFactory());
rset.close();

in row 2 to disk
imageProxy.getDataInFile("row2.jpg");

----
Am getting some java error below: java.lang.NoClassDefFoundError: oracle.ord.im.OrdImage
Previous Topic: loading XML to Oracle relational table
Next Topic: Executing a .sql file from java
Goto Forum:
  


Current Time: Mon Nov 25 17:57:04 CST 2024