Removed Buffered Input Stream for performance reasons
This commit is contained in:
parent
1455ec57f9
commit
909ad1db7c
1 changed files with 2 additions and 1 deletions
|
|
@ -122,7 +122,8 @@ public class HttpFilePage implements HttpPage{
|
|||
out.setHeader("Content-Type", getMIMEType(file));
|
||||
out.flush();
|
||||
|
||||
BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
|
||||
//InputStream in = new BufferedInputStream(new FileInputStream(file));
|
||||
InputStream in = new FileInputStream(file);
|
||||
IOUtil.copyStream(in, out);
|
||||
in.close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue