Reads the complete contents of a stream, optionally limited by max_bytes.
An exception is thrown if the stream contains more than max_bytes data.
See Implementation
Reads the complete contents of a stream, optionally limited by max_bytes.