MetadataSave Method (Stream)
Saves the document content into a stream.

Namespace: GroupDocs.Metadata
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 20.9
Syntax
public void Save(
	Stream document
)

Parameters

document
Type: System.IOStream
An output stream for the document.
Remarks
Examples
This example shows how to save a document to the specified stream.
C#
using (MemoryStream stream = new MemoryStream())
{
    using (Metadata metadata = new Metadata(Constants.InputPng))
    {
        // Edit or remove metadata here

        metadata.Save(stream);
    }
}
See Also