Skip to content

Commit

Permalink
corrected read in java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
jstaerk committed Nov 26, 2023
1 parent 80f5e79 commit a490a85
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ protected IZUGFeRDExporter getExporter() {

private byte[] fileToByteArrayInputStream(String pdfFilename) throws IOException {
FileInputStream fileInputStream = new FileInputStream(pdfFilename);
fileInputStream.reset();
byte[] bytes = new byte[fileInputStream.available()];
DataInputStream dataInputStream = new DataInputStream(fileInputStream);
dataInputStream.readFully(bytes);
Expand Down

0 comments on commit a490a85

Please sign in to comment.