Streams/Byte Arrays vs. Files

On a server, we want to merge data into a template. Ultimately, we’d like PDF output.
I realize that the template, the data source and the output can all be files, but it would be cleaner if we could use Byte Arrays or Stream objects, since we’re not actually passing or returning files from the server.
Of the three roles – template, data source and PDF output – which, if any, can Aspose Words handle as Streams or Byte Arrays rather than files?
Thanks in advance,
Rick

Hi

Thanks for your inquiry. Sure you can open document from stream and save document to stream. I think the following article could be useful for you:
https://docs.aspose.com/words/net/serialize-and-work-with-a-document-in-a-database/
Hope this helps. Please let me know if you need more assistance, I will be glad to help you.
Best regards.