Answers for "c# write bytes into stream"

C#
1

byte to stream c#

byte[] file = File. ReadAllBytes("{FilePath}");
Stream stream = new MemoryStream(file);
Posted by: Guest on February-11-2022
0

c# write byte

static void Write(Stream s, Byte[] bytes)
{
    using (var writer = new BinaryWriter(s))
    {
        writer.Write(bytes);
    }
}
Posted by: Guest on January-01-1970

C# Answers by Framework

Browse Popular Code Answers by Language