inputStream.available()获取的是文件的字节大小
InputStream inputStream = new FileInputStream(new File(path)); response.setHeader("Content-Length", String.valueOf(inputStream.available()));