Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经创建了用于传输普通文本文件的 wcf restful 调用。
我可以通过 tcpip 传输的可能的甲酸盐是什么?
我已经尝试将它读入文本格式,但无法在读取格式中获取它,所以我想在保存后保留为 .db 文件。
文件传输的最佳实践是字节数组 ( byte[] ) 或 Base64 字符串。
但在 WCF 环境中,您必须注意文件的大小。如果您的文件在任何时候都在增长,那么您必须确保它低于 WCF 主机/客户端中的缓冲区大小。(MaxReceivedSendMessage,... => 配置文件中的缓冲区大小)。