急急急!!!把图片存储到数据库中!!!

来源:百度知道 编辑:UC知道 时间:2024/06/15 03:28:15
把图片存储到SQL server数据库中
要求代码要详细 一定要正确 没有语法错误的
也可以把图片地址存储到数据库中 只要能够实现功能即可!一定要是自己写的,网上复制、粘贴的不要哦!!
急急急!!!谢谢大家哦!!我原奉献全部积分!!!

搞个字段 XML类型的 AttachData
前台代码是
<TD class=Label noWrap>文件全文:</TD>
<TD class=Edit width="100%" colSpan=3><SPAN contentEditable=false LF_DefaultValue="" LF_ErrorMsg="" LF_FormatString="" LF_ValidExp="" LF_Expression="" ControlType="Attachment" ControlID="LF_AttachData" LF_FieldName="AttachData" LF_DispName="文件全文" LF_DataType="nvarchar" LF_SearchType="0" LF_ColSpan="2" LF_Align="0" LF_FillStyle="0" LF_AutoPostBack="False" LF_MustFill="False" LF_ReadOnly="False" LF_Display="True" LF_PopupWindowType="0" LF_ForeColor="" LF_DispHeight="" LF_DispWidth="100%" LF_PopupWindowName="" LF_PopupWindowStyle="" LF_SearchString="" LF_Fields_XG="" LF_Editable="True" LF_ContentField="Attac