Code on C#:
- int length = Convert.ToInt32(inputStream.Length); // get strem length
- byte[] byteArr = new byte[length]; // create a byte array
- inputStream.Read(byteArr, 0, length);
- inputStream.Close();
* This source code was highlighted with Source Code Highlighter.
Code on VB you can find here: http://snipplr.com/view/2012/stream-to-byte-array/
Комментариев нет:
Отправить комментарий