I get a bytearray from the server which I want to write to my local disk. It's a spreadsheet and it's part of an export function.
This is what I do on the client:
Using oFileStream As New FileStream(path, FileMode.Create)
oFileStream.Write(excel, 0, excel.Length)
End Using
This is the error occuring on creating a new Filestream:
Btw: I know there are several threads about this issue, but none resolved my problem.