• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to insert the image object into Oracle Lite?

 
Shuang mu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*******************************************
MBlob mBlob1 = new MBlob();
File file1 = null;

try{
file1 = new File("./middle.gif");
mBlob1.setBlobData(file1);
} catch (FileNotFoundException e){
e.printStackTrace();
}
.........
preparedStatement.setBytes(2, mBlob1.getBytes());
*********************************************
i get the error message
" [POL-5195] An internal error; Blob is null "
when i execute the program, i don't no what is the problem, i sure that 'mBlob1' got something inside there but why cannot set in.? Hope who know can tell me...!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic