outfile = new java.io.File("d:/test.xls");
outfstrm = new FileOutputStream(outfile);
String sql = "SELECT content FROM ACCESSORY WHERE MIMENAME = 'application/vnd.ms-excel' and bugid='001'";
rset = (oracle.jdbc.OracleResultSet)(stmt.executeQuery(sql));