Answers for "c# byte[] to filestream"

C#
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
1

c# byte array to file

File.WriteAllBytes(path:"somepath\text.txt", byteArr)
Posted by: Guest on May-26-2021

C# Answers by Framework

Browse Popular Code Answers by Language