Byte array cast

  • Thread starter Thread starter HW
  • Start date Start date
H

HW

Hi, I n VB how do you cast a memorystream object to Byte array.

eg i have

memBuf = New MemoryStream();

Now i want to cast memBuf to be a Byte array, how to do?
 
You can not cast stream to byte array, you can only read from that stream
into byte array.

For memory stream you can call GetBuffer() or ToArray() to get buffer array.


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
Back
Top