Я хочу прочитать содержимое файла слова, используя веб-HTTP-запрос в .NET core 2.2 framework.
Я попробовал следующий код:
// Create a new WebClient instance.
using (WebClient myWebClient = new WebClient())
{
// Download the Web resource and save it into a data buffer.
byte[] myDataBuffer = myWebClient.DownloadData(body.SourceUrl);
// Display the downloaded data.
string download = Encoding.ASCII.GetString(myDataBuffer);
}
Вывод: ![enter image description here](https://i.stack.imgur.com/ZWHMB.png)
Невозможно прочитать содержимое файла .docx с URL-адреса.Как я могу прочитать файл DOCX без какой-либо платной библиотеки или с помощью веб-запроса HTTP.