File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes How to insert the image object into Oracle Lite? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JDBC
Reply Bookmark "How to insert the image object into Oracle Lite?" Watch "How to insert the image object into Oracle Lite?" New topic
Author

How to insert the image object into Oracle Lite?

Shuang mu
Greenhorn

Joined: Mar 28, 2002
Posts: 7
*******************************************
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...!!
 
 
subject: How to insert the image object into Oracle Lite?
 
Threads others viewed
Unable to upload file
How can I replace the line of file?
Printing issue in Java 1.4 and Fine in Java 1.5
java.io.IOException: Permission denied
File class and the length method
IntelliJ Java IDE