Load file from stream
Leave feedback
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:
- Obtain a file stream.
- Pass the opened source file stream to the
Comparer
class constructor or pass the opened target file stream to theadd()
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);
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.