InputStream Class

File-like object representing an input blob.

Inheritance
InputStream
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
default value: -1

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.