when will we use memory stream?
+2
A:
MemoryStream
is kind of wrapper over byte[]
that implements stream. You need it when you have class that reads from Stream
or writes to it, but you need to get/set raw bytes.
Andrey
2010-10-05 11:38:53
what are benefits or uses of memory stream over file stream?
Cup Of Life
2010-10-05 11:58:03
@Cup Of Life you can't say that one has benefits over another, they are not equivalent. FileStream is for writing/reading files, MemoryStream is for `byte[]`
Andrey
2010-10-05 12:47:15