I have an ArrayList of byte[] and I'm wondering if it's possible to convert this to a byte[] using stream from Java 8. All the arrays inside the ArrayList have the same size.
ArrayList<byte[]> buffer = new ArrayList();
byte[] output = buffer.stream(...)