Пример #1
0
        public void SaveAs(string path)
        {
            if (!AppPath.IsPathDirectoryExists(path))
            {
                throw new Exception("Directory is not exists, " + path);
            }
            FileStream fs = new FileStream(path, FileMode.Create);

            fs.Write(FileBytes, 0, ContentLength);
            fs.Close();
        }