Save byte array to a file - CSharp System

CSharp examples for System:Byte Array

Description

Save byte array to a file

Demo Code


using System.IO;/*  w ww . j a v a 2  s.c  o  m*/
using System.Text;

public class Main{

        public static void Save(this byte[] bytes, string savePath)
        {
            File.WriteAllBytes(savePath, bytes);
            //ToStream(bytes).Save(savePath);
        }
}

Related Tutorials