Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
plz help me how to do this application..??
Posted
Comments
Sergey Alexandrovich Kryukov 10-Oct-14 2:00am    
There is no "convert". Do you mean OCR?
—SA

try this

C#
 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();
           }
}
 
Share this answer
 
v2
Try this : http://stackoverflow.com/questions/17874733/converting-image-to-base64[^]

It will convert a image to base64 but will not extract data from image to do same you required OCR
 
Share this answer
 
v2
Comments
Suvabrata Roy 10-Oct-14 9:05am    
Why down voted?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900