1

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.

Terry
  • 5,132
  • 4
  • 33
  • 66

1 Answers1

1

You can save the byte array on the server and provide a link to it on the client. That way, your client (SL) won't need to write anything.

sporty
  • 51
  • 3