long start = System.currentTimeMillis(). String sql = "insert into LOB_TEST (id,BLOB) values (’" idtmp "’,empty_blob())". pstmt.executeUpdate(sql). conn.commit(). sql = "0select BLOB from LOB_TEST where id = ’" idtmp "’ for 0update". rs3 = pstmt.executeQuery(sql). if (rs3.next()) { Blob blob = rs3.getBlob(1). OutputStream out = ((oracle.sql.BLOB) blob) .getBinaryOutputStream(). byte[] b = new byte[((oracle.sql.BLOB) blob).getBufferSize()]. File file = new File("D:/old.dmp"). InputStream fin = new FileInputStream(file). int len = 0. while ((len = fin.read(b)) != -1)