public void Put(Stream data, Uri path, bool overwrite = false, string userName = "", string password = "") { using (data) { File.WriteAllBytes(path.LocalPath, data.ToByteArray()); } }