Closed nzmangan closed 2 years ago
Hey @nzmangan, Great PR. 😊
I had missed that ArrayBuffer is a part of FileSystemWriteChunkType.
Could you potentially add a sample of using this overload or edit an existing to use this? One place that would be easy to use it is here: InputFileExample.razor where I currently convert to string first.
Example updated as requested.
Thanks for the contribution Magnus. :) I will make a Release to Nuget with the feature later today.
Added support to write byte arrays.
Converting byte array to string using stream reader - readToEnd will convert to byte array to string but it will also add UTF8(?) encoding. This causes the file saved not to contain the same bytes as "just" writing the raw byte array.