the easy way to convert any image to string is :
1- Convert Image to Memory Stream.
2- Convert Memory Stream to Base64String.
so in this sample code I will convert the image to string and I'll save this string in text file.
private string ConvertImage(Bitmap sBit)
{
MemoryStream imageStream = new MemoryStream();
sBit.Save(imageStream, ImageFormat.Jpeg);
return Convert.ToBase64String(imageStream.ToArray());
}
private void button1_Click(object sender, EventArgs e)
{
Bitmap sBit = new Bitmap(@"C:\bmw.jpg");
string imageString = ConvertImage(sBit);
StreamWriter sw = new StreamWriter(@"C:\waleedelkot.text", false);
sw.Write(imageString);
sw.Close();
}
dear sir can u work for me
ReplyDeletei can pay u a lot
my gmail id is uday.binny@gmail.com
i am working in data processing, i need a developer like u
Hi, How can i get this to a string array?
ReplyDeleteit's only converting the bits into pexils,
ReplyDeletenot charaters or image processing
please read more about OCR/ICR/OMR etc..
sir i have to prepare one project in .net.. in which i have to convert one jpg image(scan image) into text file.....
ReplyDeletecan u tell me the code for this?
pls help me
emailid :- pratibha.sharma9@gmail.com
mam have u get this if u get plz send me to sbharani.kongu@gmal.com
DeleteHello sir/mam, i have the same project and i need source code for converting image(scan image) into text file. Can u help me too... Here's my email candranesia@gmail.com
DeleteIf know any information about converting image to text. please forward those details to murthy.doddipatla@gmail.com
DeleteThat was really funny, actually more funny than sBit.ToString()
ReplyDeleteGreat code. Finally found my solution.
ReplyDeletehello sir, i'm a new fan of your blog. i'm working on some project and i need source code for converting image(scan image) into text file. so please and please help me
ReplyDeletehere is my email id successisbehindme@gmail.com
Hello sir, i have the same project and i need source code for converting image(scan image) into text file. Can u help me too... Here's my email candranesia@gmail.com
Deletethis code can't work for converting image to text..
ReplyDeletei need the dll for converting the image to text
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteI am doing the OCR project. I need help to convert to selected part of the scan image to text file. Please help me. Please the pass information to mail (murthy.doddipatla@gmail.com). Thank you everyone
ReplyDeleteHey sir
ReplyDeleteI need ur help
I am working on conversion how i convert image into text plzzz help me
Mail " sweetbacha22@gmail.com" plzz
why are giving out email, if there is a solution it can be shared openly. it might benefit more people.
ReplyDelete