Anyway, i'm not going to take it personal with your nick name and the like but please do take advise.
Below is the code i would use to convert an image to text, well basically to it's base64 representation, that's if i got your question right:
System.Drawing.Image img = System.Drawing.Image.FromFile( "img path here" );
ImageFormat format = ImageFormat.Png;
MemoryStream memory = new MemoryStream();
img.Save( memory, format );
string base64 = Convert.ToBase64String( memory.ToArray() );
File.WriteAllText( "img.txt", base64 );
Console.WriteLine( "data written to the chosen text file" );
catch ( Exception ex )
Console.WriteLine( ex );
This works for me.