简体   繁体   English

如何通过tcpip传输数据库文件?

[英]How to transfer db file over tcpip?

I have created wcf restful call which I am using for transfering notmal text file. 我创建了wcf restful调用,用于传输非常规文本文件。

What is the possibile formate that I can user to have it transfer over tcpip? 我可以让用户通过tcpip进行传输的可能的格式是什么?

I have tried reading it into the text formate but not able to get it in the reading formate so I want to keep as .db file after saving it. 我尝试将其读入文本格式,但无法在阅读格式中获取它,因此在保存后我想保留为.db文件。

Best Practice for File Transfers are Byte Arrays ( byte[] ) or Base64 Strings. 文件传输的最佳实践是字节数组(byte [])或Base64字符串。

But in a WCF environment you have to watch the size of your file. 但是在WCF环境中,您必须注意文件的大小。 If your file is growing at any time than you have to be sure that its lower as your Buffer Sizes in your WCF Host / Client. 如果您的文件在任何时候都在增长,则必须确保其比WCF主机/客户端中的“缓冲区大小”低。 (MaxReceivedSendMessage,... => Buffer Sizes in Config File). (MaxReceivedSendMessage,... =>配置文件中的缓冲区大小)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM