Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error in reading a file:

Hello all,

I got the error below:

Exception java.io.FileNotFoundException: D:\Home$\BLOB.txt (No such file or directory)

the code is:

PreparedStatement pSt = con.prepareStatement("insert into CLOB_COL Values(?,?)") ;

pSt.setString(1,"U");

<b>FileInputStream fis=new FileInputStream(element.getFileName()); //getting error here</b>

byte[] b= new byte[fis.available()+1];

fis.read(b);

pSt.setBytes(3,b);

pSt.execute();

pSt.close();

Please suggest:

Former Member
Not what you were looking for? View more on this topic or Ask a question