I need to convert a MemoryStream to a byte array..
Here is my code..
Dim ms As New MemoryStream(ccDocument) 'ccDocument is a byte array
Dim ccReturn As Byte(ms.Length)
ms.Read(ccReturn, 0, ms.Length)
Can anyone tell me if the above code is correct?... yes I know it comes in as a byte converts to stream and then back to byte....