
## to_bytes {#}

Converts the stream data to the Byte array.


### Returns 


The stream data converted to the Byte array.


```python
def to_bytes(self):
    ...
```




## to_bytes {#int-int}

Converts the stream data to the Byte array.


### Returns 


The stream data converted to the Byte array.


```python
def to_bytes(self, position, bytes_count):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| position | int | The position to start reading bytes from. |
| bytes_count | int | The bytes count to read. |



### See Also
* module [`aspose.cad`](../../)
* class [`StreamContainer`](/cad/python-net/aspose.cad/streamcontainer)
