Read a stream in sliced chunks associating each chunk with a callback.