corrected read in java 8

This commit is contained in:
jstaerk
2023-11-26 18:27:39 +01:00
parent 80f5e796cd
commit a490a8598b

View File

@@ -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);