InputStream in = rsSql.getBinaryStream("PICTURE");//从结果集中取出数据
FileOutputStream ops = new FileOutputStream("c:/123.bmp");//将
图片信息写到123.bmp中,
byte[] b = new byte[1024];
int d;
while((d=in.read(b))!=-1){
ops.write(b,0,d);
}
ops.flush();
in.close();
ops.close();
//将123.bmp的图片信息取出存到oracle中
InputStream fis = new FileInputStream("C:/123.bmp");
pstOra.setBinaryStream(i++,fis,fis.available());