在 SL 4 中将字节数组写入本地磁盘失败

发布于 2025-01-06 05:42:34 字数 341 浏览 1 评论 0原文

我从服务器获取一个字节数组,我想将其写入本地磁盘。它是一个电子表格,是导出功能的一部分。

这就是我在客户端上所做的:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泅人 2025-01-13 05:42:34

您可以将字节数组保存在服务器上,并在客户端上提供指向它的链接。这样,您的客户 (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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文