Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
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"; } |
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.