try this
private void Form1_Load(object sender, EventArgs e)
{
byte[] imageArray = System.IO.File.ReadAllBytes(@"F:\WebApplication1\WindowsFormsApplication1\eMeditime_logo_edited.png");
string base64ImageRepresentation = Convert.ToBase64String(imageArray);
using (StreamWriter writer = new StreamWriter(@"F:\ccon\abc.txt", true))
{
writer.Write(base64ImageRepresentation);
writer.Flush();
writer.Close();
}
}