|
@@ -114,6 +114,7 @@ public class FilePreviewController {
|
|
// 通过文件路径获得File对象
|
|
// 通过文件路径获得File对象
|
|
inputStream = new FileInputStream(pdfFile);
|
|
inputStream = new FileInputStream(pdfFile);
|
|
OutputStream os = response.getOutputStream();
|
|
OutputStream os = response.getOutputStream();
|
|
|
|
+ log.error(inputStream);
|
|
int read;
|
|
int read;
|
|
while ((read = inputStream.read()) != -1) {
|
|
while ((read = inputStream.read()) != -1) {
|
|
os.write(read);
|
|
os.write(read);
|
|
@@ -182,6 +183,7 @@ public class FilePreviewController {
|
|
FileInputStream inputStream;
|
|
FileInputStream inputStream;
|
|
try {
|
|
try {
|
|
inputStream = new FileInputStream(xmlFile);
|
|
inputStream = new FileInputStream(xmlFile);
|
|
|
|
+ log.error(inputStream);
|
|
OutputStream os = response.getOutputStream();
|
|
OutputStream os = response.getOutputStream();
|
|
int read;
|
|
int read;
|
|
while ((read = inputStream.read()) != -1) {
|
|
while ((read = inputStream.read()) != -1) {
|