blob转成word的时候出现乱码
blob转成word的时候出现乱码代码如下
Blob blob = rs.getBlob(1);
byte[] ab = blob.getBytes(1, (int) blob.length());
response.setContentType("application/x-msdownload");
response.setHeader("Content-Disposition",
"attachment;filename=" +
StrParse.toUTF8String(fileName+".doc"));
ServletOutputStream op = response.getOutputStream();
op.write(ab);
op.flush();
op.close();
其高手解答