|TnefParserGetAttachments Method (Stream, TnefExtractionOptions)|
public static AttachmentCollection GetAttachments( Stream data, TnefExtractionOptions options )
Public Shared Function GetAttachments ( data As Stream, options As TnefExtractionOptions ) As AttachmentCollection
In case if you got an e-mail with a TNEF attachment, it's easier to use GetAttachmentsFromTnef method to extract data from it.
|For this overload, it's important to make sure the source stream does not end with CRLF (sometimes, winmail.dat files have this excessive CRLF). For instance, with most stream classes you can use SetLength(Int64) method to decrease the stream length by two in case if it ends with CRLF. Or, simply use GetAttachments(byte, TnefExtractionOptions) overload which internally does that.|