E
elfgirl
Unregistered / Unconfirmed
GUEST, unregistred user!
CREATE PROCEDURE uSP_BooksUploadFile
@Title varchar(200),
@Doc image,
@DocType varchar(4)
AS
INSERT tblBooksUpload(DocTitle,Doc,DocType)
VALUES (@Title,@Doc,@DocType)
GO
下面是上传页面的主要代码:
<form id="frmUpload" method="post" enctype="multipart/form-data" runat="server">
<span>Title</span><br>
<asp:textbox id="txtTitle" runat="server" enableViewState="False"></asp:textbox>
<asp:requiredfieldvalidator id="valrTitle" runat="server" ErrorMessage="*
Required" ControlToValidate="txtTitle">* Required</asp:requiredfieldvalidator>
<br>
<br>
<span>Docutment to Upload</span><br>
<input id="txtFileContents" type="file" runat="server" NAME="txtFileContents">
<br>
<br>
<asp:button id="btnSubmit" Text="Submit" Runat="server"></asp:button>
</form>
这段代码涉及到存储任何类型的文件到数据库中来。这是在网上找到的delphi语言编的,我看不懂这部分。能不能帮我翻译成cbuilder语言,麻烦注释的详细写。因为我也不太明白blob字段的存储。