File.stream
File.stream() → io.BytesIO
Read the file as a BytesIO stream. To convert to a TextIO stream, wrap with io.TextIOWrapper
. Note that by default the underlying stream won't be closed until fully consumed – it is strongly recommended to make the request within a with
statement to ensure it’s always closed.
Returns:
Examples
Last updated