---
title: "StreamWrapper..::.Read Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_Read_3_4919b3cd.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# StreamWrapper.Read Method 
 
Reads a specified number of bytes from the stream object into memory starting at the current seek pointer.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Overridable Sub Read ( _pv As Byte(), _cb As Integer, _pcbRead As IntPtr _
)
```
 
```csharp
public virtual void Read(byte[] pv,int cb,IntPtr pcbRead
)
```
 
### Parameters
 
 - pv
     - Type:  [System.Byte](http://msdn2.microsoft.com/en-us/yyb1w04y) []
On successful return, contains the data read frtom the stream.

 - cb
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
The number of bytes to read from the stream object.

 - pcbRead
     - Type: [System.IntPtr](http://msdn2.microsoft.com/en-us/5he14kz8)
Pointer to a **ULONG** variable that receives the actual number of bytes read from the stream object.
 
### Implements
 
[IStream.Read(Byte\[\], Int32, IntPtr)](http://msdn2.microsoft.com/en-us/z632s28h)
 
## Remarks
 For more information, please see the existing documentation for **IStream::Read** in the MSDN library.
   
## See Also

### Reference

- [StreamWrapper Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_StreamWrapper.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
