'Office Word How can get docunet as file

In my plugin i try to get open file as byte array or base64 so i can send via API, is there any way to make that with Word-Js, also is there any way to return document size and name and meta data?

search in

 context.document.properties 
 Office.context.document.settings

but no result as expected



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source