BayesFilterSaveDatabase Method (Stream, Stream)
Saves the Bayesian database to stream.

Namespace: MailBee.AntiSpam
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public void SaveDatabase(
	Stream spamStream,
	Stream nonSpamStream
)

Parameters

spamStream
Type: System.IOStream
An output stream containing spam samples.
nonSpamStream
Type: System.IOStream
An output stream containing non-spam samples.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionspamStream or nonSpamStream is a null reference (Nothing in Visual Basic).
MailBeeIOExceptionAn I/O error occurred.
Remarks
The data format in the stream is the same that is used for files (and the method behaves identically to SaveDatabase(String, String) with the only difference that streams are used instead of files).
Examples
The example is available in TrainFilter(MailMessage, Boolean) topic.
See Also