corrected read in java 8
This commit is contained in:
@@ -62,7 +62,6 @@ public class ZUGFeRDExporterFromPDFA implements IZUGFeRDExporter {
|
|||||||
|
|
||||||
private byte[] fileToByteArrayInputStream(String pdfFilename) throws IOException {
|
private byte[] fileToByteArrayInputStream(String pdfFilename) throws IOException {
|
||||||
FileInputStream fileInputStream = new FileInputStream(pdfFilename);
|
FileInputStream fileInputStream = new FileInputStream(pdfFilename);
|
||||||
fileInputStream.reset();
|
|
||||||
byte[] bytes = new byte[fileInputStream.available()];
|
byte[] bytes = new byte[fileInputStream.available()];
|
||||||
DataInputStream dataInputStream = new DataInputStream(fileInputStream);
|
DataInputStream dataInputStream = new DataInputStream(fileInputStream);
|
||||||
dataInputStream.readFully(bytes);
|
dataInputStream.readFully(bytes);
|
||||||
|
|||||||
Reference in New Issue
Block a user