Load file from stream

On this page

To avoid the saving stream as a file, GroupDocs.Comparison allows you to work with file streams directly.

To work with a stream, follow these steps:

  1. Obtain a file stream.
  2. Pass the opened source file stream to the Comparer class constructor or pass the opened target file stream to the add() method.

The following code snippet shows how to load a file from a stream:

const comparer = new groupdocs.comparison.Comparer(sourceInputStream);
comparer.add(targetInputStream);
const resultPath = comparer.compare(resultOutputStream);

On this page

Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.