Can anyone tell me how to convert a byte array to a stream.? Thanks Andrew
A Andrew Inwards Jun 18, 2004 #1 Can anyone tell me how to convert a byte array to a stream.? Thanks Andrew
L Lasse Vågsæther Karlsen Jun 18, 2004 #2 Can anyone tell me how to convert a byte array to a stream.? Thanks Andrew Click to expand... Create a memory stream, write the contents of the array to it.
Can anyone tell me how to convert a byte array to a stream.? Thanks Andrew Click to expand... Create a memory stream, write the contents of the array to it.
D Dmitriy Lapshin [C# / .NET MVP] Jun 18, 2004 #3 Hello Andrew, You can create a MemoryStream instance from that array.
A Andrew Inwards Jun 18, 2004 #4 Thanks for the quick response. Lasse Vågsæther Karlsen said: Create a memory stream, write the contents of the array to it. Click to expand...
Thanks for the quick response. Lasse Vågsæther Karlsen said: Create a memory stream, write the contents of the array to it. Click to expand...
J Jon Skeet [C# MVP] Jun 18, 2004 #5 Lasse Vågsæther Karlsen said: Create a memory stream, write the contents of the array to it. Click to expand... It's easier than that: Stream s = new MemoryStream(byteArray);
Lasse Vågsæther Karlsen said: Create a memory stream, write the contents of the array to it. Click to expand... It's easier than that: Stream s = new MemoryStream(byteArray);
L Lasse Vågsæther Karlsen Jun 19, 2004 #6 It's easier than that: Stream s = new MemoryStream(byteArray); Click to expand... Thanks for the update, didn't know about that one
It's easier than that: Stream s = new MemoryStream(byteArray); Click to expand... Thanks for the update, didn't know about that one