Tuesday, July 31, 2018

How To Convert System.Byte To A System.io.stream Object Using C#

In this post, we will learn about how to convert byte to stream using c# console application. In this example first, we read all the bytes from the file using File.ReadAllBytes method than using MemoryStream we add all bytes into memory stream for reading byte one by one we are using BinaryReader for reading all bytes one by one using for loop. There is another option for convert byte to memory stream or stream using c#. Let's start coding.

source https://www.c-sharpcorner.com/Blogs/how-to-convert-systembyte-to-a-systemiostream-object-using-c-sharp

No comments:

Post a Comment