ViewerSaveAttachment Method
Saves attachment file to destination stream.

Namespace: GroupDocs.Viewer
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 20.8
Syntax
public void SaveAttachment(
	Attachment attachment,
	Stream destination
)

Parameters

attachment
Type: GroupDocs.Viewer.ResultsAttachment
The attachment.
destination
Type: System.IOStream
The writable stream.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when attachment is null.
ArgumentNullExceptionThrown when destination is null.
PasswordRequiredExceptionThrown when password is required to open the document.
IncorrectPasswordExceptionThrown when password that was specified is incorrect.
GroupDocsViewerExceptionThrown when attachment could not be found.
Remarks
Learn more
See Also