HI all,

can some one tell me how to extract data from images

and mime messages. Exact code not necessary but do guide me as how to go about it.

Thanks in advance.

Regards,
sara

Recommended Answers

All 5 Replies

Hi, I dont have idea about this. but you must know about the image format.

Hi,

thanks for the reply...

The issue is any kind of image can be attached to emails. I have to extract from them. Is there a way to check the kind of image and extract data

Dear sara,

Look I need to know first what you mean from extracting data from images and mime messages

can you explain more to help you..
and if you mean image recognition

can some one tell me how to extract data from images
and mime messages. Exact code not necessary but do guide me as how to go about it.
Thanks in advance.
Regards,
sara

one path ease:

type data:nvarchar(50)
next caommand to c#:
private void textBox1_TextChanged(object sender, EventArgs e)
{
try
{
if (textBox1.TextLength == 9)
{
string SQLCON = "SERVER=(Local);Database=Sample;Integrated security=True;";/*sample is databesname*/
string strSQL = "SELECT * FROM tblSHaghel WHERE ID_Personel=" + "'" + textBox1.Text + "'";
SqlConnection objcon = new SqlConnection(SQLCON);
SqlCommand cmd = new SqlCommand(strSQL, objcon);
objcon.Open();
SqlDataReader datred = cmd.ExecuteReader();
if (datred.Read())
{
comboBox1.Text = datred["Yeg"].ToString();
textBox2.Text = datred["name"].ToString();
textBox3.Text = datred["Family"].ToString();
maskedTextBox1.Text = datred["Tavalod"].ToString();
textBox4.Text = datred["T_Ae"].ToString();
maskedTextBox2.Text = datred["N1"].ToString();
maskedTextBox3.Text = datred["N2"].ToString();
maskedTextBox4.Text = datred["N3"].ToString();
textBox5.Text = datred["Saier"].ToString();
behdariDataSet.tblSHaghel.Clear();
SqlDataAdapter daad=new SqlDataAdapter(strSQL,SQLCON);
daad.Fill(behdariDataSet.tblSHaghel);pictureBox1.Load(datred["Photo"].ToString());
objcon.Close();
objcon.Dispose();
textBox1.Focus();
label11.Visible = false;
}
else
{
comboBox1.Text = "";
textBox2.Clear();
textBox3.Clear();
maskedTextBox1.Clear();
textBox4.Clear();
maskedTextBox2.Clear();
maskedTextBox3.Clear();
maskedTextBox4.Clear();
textBox5.Clear();
pictureBox1.Image = null;
label11.Visible = true;
behdariDataSet.tblSHaghel.Clear();
comboBox1.Focus();
}
}
else
{
comboBox1.Text = "";
textBox2.Clear();
textBox3.Clear();
maskedTextBox1.Clear();
textBox4.Clear();
maskedTextBox2.Clear();
maskedTextBox3.Clear();
maskedTextBox4.Clear();
textBox5.Clear();
behdariDataSet.tblSHaghel.Clear();
pictureBox1.Image = null;
label11.Visible = true;
}


}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}

i have an assignment which extracts data from outlook (mailitems,...), and manipulates.

i have an addin in C# that access the mail items...

in case the mail has images and other type of attachments... i dont know how to handle it.

Please help.....

And is there a way to figure out if the user has highlighted any word (like bold, or color..)

Thanks in advance

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.