Read data from the temporary stream

# HaruDoc::readFromStream

(PECL haru >= 0.0.1)

HaruDoc::readFromStream — Read data from the temporary stream

### Descrierea

HaruDoc::readFromStream ( int `$bytes` ) : string

Read data from the temporary stream.

### Parametri

`bytes`

  The `bytes` parameter specifies how many bytes to read, though the stream may contain less bytes than requested.

### Valorile întoarse

Returns data from the temporary stream.

### Erori/Excepții

Emite un HaruException în caz de eroare.

### A se vedea și

- HaruDoc::saveToStream() - Save the document into a temporary stream
- HaruDoc::resetStream() - Rewind the temporary stream
- HaruDoc::getStreamSize() - Get the size of the temporary stream