c# - Saving Attachments from mail item to Database -


I want to read the content of mail such as CC, topic, body, mail, and store it in the database table. . I am using code below.

  EmailMessage msg = (email message) item; Forchach (var call in msg.CcRecipients) {ccList + = col.Address.ToString () + ";"; } Foreach (performer in msg). }  

In this way I can read body and subject. There is a problem reading the attachment, how to read the attachment and store it in the database.

I can use msg.Attachments. But what type of object should be, please suggest some better ways to store attachments in the database.

You will need at least one table to store two columns the actual file (byte []) For the second column of varchar (string) to store a verbarini and miter type.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -