InputStream class

Definition

File-like object representing an input blob.

Inheritance
_io._BufferedIOBase
InputStream
builtins.object
InputStream

Methods

read

Return and read up to size bytes.

read

Return and read up to size bytes.

read(size=-1) -> bytes

Parameters

size
int
Required

The number of bytes to read. If the argument is omitted, None, or negative, data is read and returned until EOF is reached.

Returns

Bytes read from the input stream.

Attributes

length

The size of the blob in bytes.

name

The name of the blob.

uri

The blob's primary location URI.