I’m writing a plugin for word and would like to get the docx files as a byte array and send it to a web service.
Can I do this?
I’m writing a plugin for word and would like to get the docx files as a byte array and send it to a web service.
Can I do this?
You can use ReadAllBytes:
byte[] bytes = File.ReadAllBytes(filename);
Is that what you're looking for?