How to convert array of byte to stream?
C#
2
Posts
2
Posters
0
Views
1
Watching
-
How can we convert a byte array to stream or stream to array of byte? So How can we change the size of stream? Can we change the stream lenght(or size) bigger? I thank you very much for your answers.
-
How can we convert a byte array to stream or stream to array of byte? So How can we change the size of stream? Can we change the stream lenght(or size) bigger? I thank you very much for your answers.
Stream is an abstract class, you have to use one of it's implementations. You can create a MemoryStream from a byte array, and you can get the data from a MemoryStream as a byte array. The size of a stream is determined from the data that it contains. You change the size of a stream by writing to it.
--- b { font-weight: normal; }