public static File downloadFileToTemp(final String fileUrl,final String ext) throws IOException {
  final File file=File.createTempFile("jk-",ext);
  HttpUtil.downloadFile(fileUrl,file.getAbsolutePath());
  return file;
}

public static File downloadFileToTemp ( final String fileUrl , final String ext ) throws IOException { final File file = File . createTempFile ( "jk-" , ext ) ; HttpUtil . downloadFile ( fileUrl , file . getAbsolutePath ( ) ) ; return file ; }
download file to temp .
