How do I get the file contents of a MultipartMemoryStreamProvider as a byte array?

后端 未结 1 1152
一个人的身影
一个人的身影 2021-02-10 06:18

I have created a component that uploads files to a Web API controller using FormData.

How do I get the file contents from the MultipartMemoryStreamProvider as a byte arr

1条回答
  •  北恋
    北恋 (楼主)
    2021-02-10 07:14

    You should be able to get the content by doing i.ReadAsByteArrayAsync()

    0 讨论(0)
提交回复
热议问题