【发布时间】:2012-10-25 04:40:24
【问题描述】:
伙计们,我正在使用 inputStream 进行文件下载。现在我想将 fileName 和 fileType 传递给 DefaultStreamedContent 。现在我如何使用 inputStream 找到 fileName 和 FileType 。
InputStream inputStream = new BufferedInputStream(new FileInputStream(filePath));
fileDownload = new DefaultStreamedContent(inputStream,**fileType,fileName**);
【问题讨论】:
-
你为什么不用
fileDownload = new DefaultStreamedContent(inputStream);?
标签: spring jsf primefaces