I want to read all bytes on a file, but when I do this
Path fileLocation = Paths.get("./env.wav");
byte[] data = Files.readAllBytes(fileLocation);
System.out.println(data);
And it outputs only this:
[B@6ab1bd82
Instead of outputting a byte array like this:
249 4646 ac98 0200 5741 5645 666d 7420 1000 0000 0100 0100 44ac 0000 8858 0100 0200 1000 6461 7461 8898 0200 7900 5200 5600 3b00 3100 0c00 6500 4000 2500 7a00 2d00 0c00 5400 5100 2500 1200 feff 0d00 [etc..............]