test

by weqadqa on March 12th, 2010
No notes
Syntax: No syntax
Show lines - Hide lines - Show in textbox - Download
Private Function GetStreamAsByteArray(ByVal stream As System.IO.Stream) As Byte()         Dim streamLength As Integer = Convert.ToInt32(stream.Length)         Dim fileData As Byte() = New Byte(streamLength) {}         ' Read the file into a byte array        stream.Read(fileData, 0, streamLength)        stream.Close()         Return fileData     End Function

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS