打印/下载
使用

引入

import vip.webmis.java.library.Down;

Blob 二进制文件下载


private static String dirRoot = "upload/";

@RequestMapping("/downFile")
byte[] downFile(String path, String filename) {
  // 参数
  path = path.trim();
  filename = filename.trim();
  if(path.equals("") || filename.equals("")) return null;
  // 文件流
  return Down.fileBlob(dirRoot+path, filename);
}
{{copy}}