Added method to load a file as a byte array