if (!"".equals(attachmentvo.getFilePath())) {
byte[] bytes1 = attachmentvo.getContexts();
ByteArrayInputStream bis = new ByteArrayInputStream(bytes1);
os = new FileOutputStream(outPath);
buffer = new byte[4096];
int len = 0;
while ((len = bis.read(buffer)) != -1) {
os.write(buffer, 0, len);
}
buffer = null;
bis.close();
os.close();
}
byte[] bytes1 = attachmentvo.getContexts();
ByteArrayInputStream bis = new ByteArrayInputStream(bytes1);
os = new FileOutputStream(outPath);
buffer = new byte[4096];
int len = 0;
while ((len = bis.read(buffer)) != -1) {
os.write(buffer, 0, len);
}
buffer = null;
bis.close();
os.close();
}