private void button1_Click(object sender, EventArgs e) { OpenFileDialog _openFileDialog = new OpenFileDialog(); if (_openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { CodeBase64 codeBase64 = new CodeBase64(_openFileDialog.FileName, null); codeBase64.EncodeBase64(); } }
private void button1_Click(object sender, EventArgs e) { OpenFileDialog _openFileDialog = new OpenFileDialog(); if (_openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { string outputFileName = Path.GetFileNameWithoutExtension(_openFileDialog.FileName) + ".b64"; CodeBase64 codeBase64 = new CodeBase64(_openFileDialog.FileName, outputFileName); codeBase64.EncodeBase64(); } }