怎样将数据库中image字段保存到xml中?
怎样将数据库中image字段保存到xml中?
DataInputStream dataln =new DataInputStream(rs.getBinaryStream("cscjwr_flow"));
String zdysqls="";
String inLine=dataln.readLine();
boolean isquerysql=false;
while(inLine!=null){
isquerysql=true;
zdysqls+=inLine+" ";
inLine=dataln.readLine();
}
//System.out.println(zdysqls);
Element element = new Element(rsmd.getColumnName(i)).setText(zdysqls);
document.getRootElement().addContent(element);///element0.addContent();
setText方法只能保存String .