So for a program I have to read a file to a byte array in my Java program (Please note that I\'m restricted to Java 8!). At first my approach was this:
byte[]