code为网站附加文件? [英] Code for attaching files in a Website?
问题描述
我使用通过 System.Data.OleDb
。我知道,我需要添加到数据库中的图片文件一栏,但是当我确实有,我怎么办呢?我想当然使用的OleDb的。我希望有人可以插入图片,看到它在浏览器中,他们选择的照片,然后用<形式>
或什么的,我就发信息给服务器和做所有的code。所以,我需要知道的HTML类型的输入,而codeS我需要附加的图像,并把它在我的数据库成功。我想我还需要code,因此将文件保存在我的网站的文件夹中的文件,我不知道。 谢谢!的
我与Microsoft Visual Studio 2010,ASP.NET(和C#)的工作。
I use using System.Data.OleDb
. I know that I would need to add to the database a column of picture files, but when I do have, how do I do it? I want to of course use OleDb. I want that someone could insert a picture, see it in the browser the picture they selected, and then with a <form>
or something, I would send the information to the Server and do all the code. So I need to know the types of input in HTML, and the codes I need for attaching a image and putting it in my Database successfully. I guess I also need code so it saves the file in the folder files of my WebSite, I don't know. Thanks!
I'm working with Microsoft Visual Studio 2010, ASP.NET (and C#).
推荐答案
有许多可用的解决方案。拜托,这是要求你做研究之前提出这样的问题而答案您可以检查
There are a number of solution available. Please, it is requested to you that do research before ask the question while for answer you can check
<一个href=\"http://www.aspsnippets.com/Articles/How-to-save-insert-Image-in-Database-in-ASPNet-using-C-and-VBNet.aspx\"相对=nofollow>在DB 插入图像
这篇关于code为网站附加文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!