this.Hide();
OpenFileDialog dialog = new OpenFileDialog();
DialogResult dialogResult = dialog.ShowDialog();
if (dialogResult == DialogResult.OK)
{
byte[] bytes = File.ReadAllBytes(dialog.FileName);
string base64 = Convert.ToBase64String(bytes);
}