Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
Extract Files from MIMEExtract files from a MIME message.
Chilkat.Mime mime = new Chilkat.Mime(); bool success; success = mime.UnlockComponent("Anything for 30-day trial."); if (success == false) { MessageBox.Show("Failed to unlock component"); return; } // Load a MIME document from a file: // (.mht and .eml files contain MIME). success = mime.LoadMimeFile("mst.mht"); if (success == false) { MessageBox.Show(mime.LastErrorText); return; } Chilkat.StringArray sa = null; sa = mime.ExtractPartsToFiles("c:/temp/mimeParts"); if (sa == null ) { textBox1.Text += mime.LastErrorText + "\r\n"; return; } int i; int n; n = sa.Count; // Display the filepaths of the files created: for (i = 0; i <= n - 1; i++) { textBox1.Text += sa.GetString(i) + "\r\n"; } |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.