The straighforward and easy to maintain option would be to call the Confluence API to upload content; it is well documented so it should be the same as calling any REST API from .Net, once you have the content as you indicate.
https://docs.atlassian.com/confluence/REST/latest/#content-createContent
EDIT: while there are many questions in SO addressing how to call an API from .Net, just to have the full reference: