|
|
@@ -258,11 +258,9 @@ public class PdfController {
|
|
|
ServletOutputStream outputStream = response.getOutputStream();
|
|
|
byte[] data = new byte[1024];
|
|
|
int i;
|
|
|
- int count = 0;
|
|
|
try {
|
|
|
- while (count <= file.length() && (i = fis.read(data)) != -1) {
|
|
|
+ while ((i = fis.read(data)) != -1) {
|
|
|
outputStream.write(data, 0, i);
|
|
|
- count += i;
|
|
|
}
|
|
|
outputStream.flush();
|
|
|
} catch (IOException e) {
|