如何在.net Windows复制中上载文本文件? [英] How can upload text files in .net windows pplication?

查看:86
本文介绍了如何在.net Windows复制中上载文本文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在.net Windows应用程序中创建一个表单.请给我代码以上传文本文件并将其保存在数据库中.我在google中找不到.


谢谢

Viswanathan.M

Hi,

I am creating a form in .net windows application. Kindly give me the code to upload a text file and save it in a database.I can''t find in google.


Thanks

Viswanathan.M

推荐答案

如果您想将文件直接从应用程序存储到数据库中(如果我理解正确的话),也许这会有所帮助:如何将二进制数据存储和提取到文件流列中 [
If you want to directly store the file into the database from the application (if I understood correctly), perhaps this would help: How to store and fetch binary data into a file stream column[^].

Even though the user interface is WPF, the idea is easy to convert to Forms if needed.


上传"是什么意思?将其发送到Web服务器的最佳方法是公开一个可以调用的Web服务.
What does ''upload'' mean ? The best way to get it to a web server, is to expose a web service you can call to do it.


浏览
http://www.java2s.com/Tutorial/CSharp/0560__ADO.Net/LoadTextfiletoDatabase.htm [ ^ ]
http://social.msdn.microsoft.com /forums/zh-CN/Vsexpressvcs/thread/b818de10-9dbb-4ca4-9c31-8f3305713eee/ [ http://imar.spaanjaars.com/414/storing-uploaded-files-in-a-database-or-in-the-file-system-with-aspnet-20 [
Go through
http://www.java2s.com/Tutorial/CSharp/0560__ADO.Net/LoadTextfiletoDatabase.htm[^]
http://social.msdn.microsoft.com/forums/en-US/Vsexpressvcs/thread/b818de10-9dbb-4ca4-9c31-8f3305713eee/[^]
http://imar.spaanjaars.com/414/storing-uploaded-files-in-a-database-or-in-the-file-system-with-aspnet-20[^]


这篇关于如何在.net Windows复制中上载文本文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆