67,513
社区成员
发帖
与我相关
我的任务
分享
public static boolean saveByteStreament(byte[] byteStream){
boolean retValue = false;
File temporaryFile= creatTemporaryFile();
try {
FileOutputStream os = new FileOutputStream(temporaryFile);
System.out.println(os.getChannel().toString());
os.write(byteStream);
os.close();
retValue = true;
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return retValue;
}