asp.net关于文件在数据库的存入和读取
|
日期:2006年10月31日 作者: 查看:[大字体
中字体 小字体]
|
108 //Stream用于读取上传数据 109 Stream objStream; 110 String strDocExt; 111 //上传文件具体内容 112 intDocLen = postedFile.ContentLength; 113 strDocExt = strOldFilePath.Substring(strOldFilePath.LastIndexOf(".") + 1); 114 115 byte[] Docbuffer = new byte[intDocLen]; 116 objStream = postedFile.InputStream; 117 118 119 //文件保存到缓存 120 121 //缓存将保存到数据库 122 objStream.Read(Docbuffer, 0, intDocLen); 123 124 string fileType = postedFile.ContentType; 125 126 127 //执行服务器端存储过程Send_Group_Email 128 if (!bDone) 129 { 130 cmd = new SqlCommand("Send_Group_Email", conn); 131 cmd.CommandType = CommandType.StoredProcedure;
上一篇:一步一步教你做 参加MSN与雅虎通互通测试
下一篇:ASP.NET2.0下利用javascript实现TreeView中的checkbox全选
|
| asp.net关于文件在数据库的存入和读取 相关文章: |
|
|
|
| asp.net关于文件在数据库的存入和读取 相关软件: |
|
|
|