上传文件或文档 [英] Upload a file or Document

查看:59
本文介绍了上传文件或文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何在C#Windows应用程序中上传文件或文档.

问候
Balamurugan

Hi,
How to upload a file or document in C#Windows application.

Regards
Balamurugan

推荐答案

选中此链接.
http://msdn.microsoft.com/en-us/library/system.net. ftpwebrequest.aspx [ ^ ]
--NDK
Check this link.
http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^]
--NDK


此处 [ ^ ]是有关如何使用FTP上传文件的文章.如果您要上传到自己的网站,则可以编写网络服务 [<请改用href ="http://www.c-sharpcorner.com/UploadFile/scottlysle/UploadwithCSharpWS05032007121259PM/UploadwithCSharpWS.aspx" target ="_ blank" title ="New Window"> ^ ]来完成这项工作.

显然,您想问的是如何将文件插入数据库. 此处 [
Here[^] is an article on how to upload files with FTP. If you''re uploading to your own website, you can write a webservice[^] instead to do the job.

Apparently, you meant to ask how to insert files in to the database. Here[^] is a Code Project article. It tells how to insert images but note, your database IMAGE type just means a binary blob ( there is also a BLOB type you can use ), and does not mean a picture, you can store any data in to that type you like, using this code.


这篇关于上传文件或文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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