当前位置: 代码迷 >> ASP.NET >> 怎样把上传的附件存到数据库里面,该怎么解决
  详细解决方案

怎样把上传的附件存到数据库里面,该怎么解决

热度:8254   发布时间:2013-02-26 00:00:00.0
怎样把上传的附件存到数据库里面
各位大哥,请问怎样才能把上传的附件存到数据库里面,数据库随便就可以主要把附件存里面.

------解决方案--------------------------------------------------------
System.IO.BinaryReader br = new System.IO.BinaryReader(File1.PostedFile.InputStream); byte[] bytes = br.ReadBytes(File1.PostedFile.ContentLength); br.Close();
  相关解决方案