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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top