private File getTransFormedIns(InputStream ins,int width, int height) throws Exception {
// TODO Auto-generated method stub
File file = null;
OutputStream os = null;
try {
file = File.createTempFile("tmp",".jpg",new File(System.getProperty("java.io.tmpdir")));
os = new FileOutputStream(file);
imageService.transformImageWithoutWaterMark(ins, os, width, height);
ins.close();
os.close();
} catch (IOException e) {
try {
if (ins != null)
ins.close();
if (os != null)
os.close();
} catch (IOException e1) {
e.printStackTrace();
}
e.printStackTrace();
throw e;
}
return file;
}

相关文章:

  • 2021-12-25
  • 2021-11-30
  • 2021-12-01
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-12-10
猜你喜欢
  • 2022-01-28
  • 2021-06-03
  • 2021-10-21
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案