I need to Encrypt a word file and to do so i need to not just read the text of the word file beacuse it may contain also images so i need to get the Word Doc or Docx content as bytes then encrypt them and then create a new file with a new extension say DocSec and write the bytes to this file.
My qestion is: is it possible to read the content of word doc\x with File.ReadAllBytes so it will take into consideration also images?
If not what is the recommended way to do so?