I am getting the result StreamReader
object.
I want to convert the result into byte[]
.
How can I convert StreamReader
to byte[]
?
Thanks
question from:https://stackoverflow.com/questions/5867227/convert-streamreader-to-byteI am getting the result StreamReader
object.
I want to convert the result into byte[]
.
How can I convert StreamReader
to byte[]
?
Thanks
question from:https://stackoverflow.com/questions/5867227/convert-streamreader-to-byteA StreamReader is for text, not plain bytes. Don't use a StreamReader, and instead read directly from the underlying stream.