在 SL 4 中将字节数组写入本地磁盘失败
我从服务器获取一个字节数组,我想将其写入本地磁盘。它是一个电子表格,是导出功能的一部分。
这就是我在客户端上所做的:
Using oFileStream As New FileStream(path, FileMode.Create)
oFileStream.Write(excel, 0, excel.Length)
End Using
这是创建新文件流时发生的错误:
顺便说一句:我知道有关于这个问题的几个线程,但没有一个解决我的问题。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将字节数组保存在服务器上,并在客户端上提供指向它的链接。这样,您的客户 (SL) 就不需要编写任何内容。
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.