SteveSandersonMS / BlazorInputFile

A file input component for Blazor applications
250 stars 75 forks source link

Reset Stream back to the begining #27

Closed oscardeharo closed 4 years ago

oscardeharo commented 4 years ago

I am trying to read a file back from the beginning. I've tried several solutions on the Web but they all crash with a: "Synchronous reads are not supported." Any solution? Thanks!

oscardeharo commented 4 years ago

Fixed it by copying the file to a MemoryStream.